File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -199,13 +199,14 @@ def test_SingleAxisTracker_tracking():
199
199
pvsyst_solar_height = 27.315
200
200
pvsyst_axis_tilt = 20.
201
201
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 ])
207
208
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 )
209
210
expect = pd .DataFrame ({'aoi' : 41.07852 , 'surface_azimuth' : 180 - 18.432 ,
210
211
'surface_tilt' : 24.92122 , 'tracker_theta' : - 15.18391 },
211
212
index = [0 ], dtype = np .float64 )
You can’t perform that action at this time.
0 commit comments