When passing components and times with different timezones to hatyan.prediction(), the prediction will have the timezone of the components instead of the times. This is unexpected:
[x] change the code so that the timezone (and extent) of times is maintained in the prediction dataframe
[x] still allow for tznaive times with tzaware comp, otherwise all RWS scripts will fail. So the second two testcases will result in the same results as in this issue description. However, give a warning that this happens.
[x] add/update test for mixed timezones (with code above)
[x] run testbank, some timezone tests might fail
[x] run example scripts, especially ddl script
[x] update whatsnew
[x] maybe reduce complexity of prediction_singpleperiod()
[x] check pytest warnings if we get the newly created warning numerous times
When passing
components
andtimes
with different timezones tohatyan.prediction()
, the prediction will have the timezone of thecomponents
instead of thetimes
. This is unexpected:Gives:
When using:
Gives:
The usecase in
test_prediction_comp_and_times_different_timezones()
even interprets the naive tstart/tstop in the tzone of the components:Gives:
Todo:
times
is maintained in the prediction dataframeprediction_singpleperiod()