You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a little code malfunction in DirectSolarIrradiation.py
Indeed, whatever the dtStart, dtStop values (ex: datetime(2021, 12, 21, 6), datetime(2021, 12, 21, 12)), the calculation is done for the entire day. I suggest this change
datetimes = DatetimeLib.range(dtStart, dtStop, dtDelta)
import pandas as pd
datetimes = [x.to_pydatetime() for x in pd.date_range(start=dtStart, end=dtStop, freq=freq, tz='Europe/Paris').tolist()]
The text was updated successfully, but these errors were encountered:
s-martiz
changed the title
little bug in energy.geoProcesses.DirectSolarIrradiation.py
DatetimeLib usage in energy.geoProcesses.DirectSolarIrradiation.py
Sep 12, 2022
I think there is a little code malfunction in DirectSolarIrradiation.py
Indeed, whatever the dtStart, dtStop values (ex: datetime(2021, 12, 21, 6), datetime(2021, 12, 21, 12)), the calculation is done for the entire day. I suggest this change
datetimes = DatetimeLib.range(dtStart, dtStop, dtDelta)import pandas as pd
datetimes = [x.to_pydatetime() for x in pd.date_range(start=dtStart, end=dtStop, freq=freq, tz='Europe/Paris').tolist()]
The text was updated successfully, but these errors were encountered: