Open knoxsp opened 2 weeks ago
I'll follow its advice of casting to DatetimeIndex
as the proper solution; in the meantime, this can be suppressed with...
warnings.filterwarnings("ignore", category=FutureWarning, message=r".*Resampling with a PeriodIndex.*")
...which also works when the warning is emitted by Pywr (from dataframe_tools.py:127).
The warning in the example above originates from the hydra_pywr_custom_module
that is written by the user-defined rules processing routine in exporter.py:208 - i.e. it is a rule added by a user to a particular network and not part of hydra-pywr. There don't seem to be any instances of pd.DataFrame.resample()
being used in hydra-pywr proper.
THe error below has started to appear: