8000 construct a pvsyst_system object in single axis tracker test to ensur… · cdeline/pvlib-python@9172a5d · GitHub < 8000 meta name="theme-color" content="#1e2327">
[go: up one dir, main page]

Skip to content

Commit 9172a5d

Browse files
committed
construct a pvsyst_system object in single axis tracker test to ensure the consistency with PVsyst results.
move the comment line up to reduce the line length
1 parent 50eb415 commit 9172a5d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pvlib/test/test_tracking.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,14 @@ def test_SingleAxisTracker_tracking():
199199
pvsyst_solar_height = 27.315
200200
pvsyst_axis_tilt = 20.
201201
pvsyst_axis_azimuth = 20.
202-
system.backtrack = False
203-
system.max_angle = 60.
204-
system.axis_tilt = pvsyst_axis_tilt
205-
system.axis_azimuth = 180+pvsyst_axis_azimuth
206-
apparent_azimuth = pd.Series([180+pvsyst_solar_azimuth]) # the definition of azimuth is different from PYsyst
202+
pvsyst_system = tracking.SingleAxisTracker(max_angle=60.,
203+
axis_tilt=pvsyst_axis_tilt,
204+
axis_azimuth=180+pvsyst_axis_azimuth,
205+
backtrack=False)
206+
# the definition of azimuth is different from PYsyst
207+
apparent_azimuth = pd.Series([180+pvsyst_solar_azimuth])
207208
apparent_zenith = pd.Series([90-pvsyst_solar_height])
208-
tracker_data = system.singleaxis(apparent_zenith, apparent_azimuth)
209+
tracker_data = pvsyst_system.singleaxis(apparent_zenith, apparent_azimuth)
209210
expect = pd.DataFrame({'aoi': 41.07852 , 'surface_azimuth': 180-18.432 ,
210211
'surface_tilt': 24.92122 , 'tracker_theta': -15.18391},
211212
index=[0], dtype=np.float64)

0 commit comments

Comments
 (0)
0