Skip to content

Commit

Permalink
rollback DNI from _makeTrackerCSV
Browse files Browse the repository at this point in the history
  • Loading branch information
shirubana committed Aug 4, 2022
1 parent f75212c commit 67d1da4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3758,22 +3758,20 @@ def _makeTrackerCSV(self, theta_list, trackingdata):
dni_temp = []
ghi_temp = []
dhi_temp = []
for g, d, dn, time in zip(self.ghi, self.dhi, self.dni,
for g, d, time in zip(self.ghi, self.dhi,
dt.strftime('%Y-%m-%d %H:%M:%S')):

# is this time included in a particular theta_round angle?
if time in datetimetemp:
ghi_temp.append(g)
dhi_temp.append(d)
dni_temp.append(dn)
else:
# mask out irradiance at this time, since it
# belongs to a different bin
ghi_temp.append(0.0)
dhi_temp.append(0.0)
dni_temp.append(0.0)
# save in 2-column GHI,DHI format for gencumulativesky -G
savedata = pd.DataFrame({'DNI': dni_temp, 'GHI':ghi_temp, 'DHI':dhi_temp},
savedata = pd.DataFrame({'GHI':ghi_temp, 'DHI':dhi_temp},
index = self.datetime).tz_localize(None)
# Fill partial year. Requires 2021 measurement year.
savedata = _subhourlydatatoGencumskyformat(savedata,
Expand All @@ -3785,7 +3783,7 @@ def _makeTrackerCSV(self, theta_list, trackingdata):
index=False,
header=False,
sep=' ',
columns=['DNI','GHI','DHI'])
columns=['GHI','DHI'])


return trackerdict
Expand Down

0 comments on commit 67d1da4

Please sign in to comment.