Skip to content

Commit

Permalink
Update test suite for pvlib v0.9.0 (#115)
Browse files Browse the repository at this point in the history
* stop using orientation_strategy parameter

* change xfail to skip
  • Loading branch information
kandersolar authored Dec 3, 2021
1 parent a3d3860 commit bb451a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pvanalytics/tests/features/test_clearsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pvanalytics.features import clearsky


@pytest.mark.xfail(strict=True)
@pytest.mark.skip(reason="GH #105")
@pytest.mark.filterwarnings("ignore:Support for multi-dimensional indexing")
def test_reno_identical(quadratic):
"""Identical clearsky and measured irradiance all True"""
Expand All @@ -14,7 +14,7 @@ def test_reno_identical(quadratic):
assert clearsky.reno(quadratic, quadratic).all()


@pytest.mark.xfail(strict=True)
@pytest.mark.skip(reason="GH #105")
@pytest.mark.filterwarnings("ignore:Support for multi-dimensional indexing")
@pytest.mark.filterwarnings("ignore:invalid value encountered in")
def test_reno_begining_end(quadratic):
Expand Down
1 change: 0 additions & 1 deletion pvanalytics/tests/features/test_orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def power_tracking(clearsky, albuquerque, system_parameters):
mc = modelchain.ModelChain(
system,
albuquerque,
orientation_strategy='south_at_latitude_tilt'
)
mc.run_model(clearsky)
return mc.ac
Expand Down
10 changes: 5 additions & 5 deletions pvanalytics/tests/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,24 @@ def summer_ghi(summer_clearsky):
@pytest.fixture
def summer_power_fixed(summer_clearsky, albuquerque, system_parameters):
"""Simulated power from a FIXED PVSystem in Albuquerque, NM."""
pv_system = pvsystem.PVSystem(**system_parameters)
pv_system = pvsystem.PVSystem(surface_azimuth=180,
surface_tilt=albuquerque.latitude,
**system_parameters)
mc = modelchain.ModelChain(
pv_system,
albuquerque,
orientation_strategy='south_at_latitude_tilt'
)
mc.run_model(summer_clearsky)
return mc.ac


@pytest.fixture
def summer_power_tracking(summer_clearsky, albuquerque, system_parameters):
"""Simulated power for a pvlib SingleAxisTracker PVSystem in Albuquerque"""
"""Simulated power for a TRACKING PVSystem in Albuquerque"""
pv_system = tracking.SingleAxisTracker(**system_parameters)
mc = modelchain.ModelChain(
pv_system,
albuquerque,
orientation_strategy='south_at_latitude_tilt'
albuquerque
)
mc.run_model(summer_clearsky)
return mc.ac
Expand Down

0 comments on commit bb451a0

Please sign in to comment.