Skip to content

Commit

Permalink
remove repeated lines...
Browse files Browse the repository at this point in the history
  • Loading branch information
shirubana committed Apr 5, 2023
1 parent a9d31a0 commit db91364
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,28 +1091,6 @@ def _parseTimes(t, hour, coerce_year):
raise Exception('Weather file returned zero points for the '
'starttime / endtime provided')

# Parse the start and endtime strings.
if starttime is not None:
starttime, coerce_year = _parseTimes(starttime, 1, coerce_year)
starttime = starttime.tz_localize(tzinfo)
if endtime is not None:
endtime, coerce_year = _parseTimes(endtime, 23, coerce_year)
endtime = endtime.tz_localize(tzinfo)
'''
#TODO: do we really need this check?
if coerce_year is not None and starttime is not None:
if coerce_year != starttime.year or coerce_year != endtime.year:
print("Warning: Coerce year does not match requested sampled "+
"date(s)'s years. Setting Coerce year to None.")
coerce_year = None
'''

tmydata_trunc = self._saveTempTMY(metdata, filename=tempMetDatatitle,
starttime=starttime, endtime=endtime,
coerce_year=coerce_year,
label=label)


return self.metdata


Expand Down

0 comments on commit db91364

Please sign in to comment.