Closed kperrynrel closed 1 year ago
Only private methods updated, no API.rst or init.py updates needed
Hey @kanderso-nrel and @mdeceglie I just added a unit test for the daily ad hoc filter and I wanted to get your input. The daily filter MUST have the same timestamp index as the aggregated data currently, which means there's a time zone attached:
Are we good with this? It means we need to make sure all daily filters return a series that is tz-aware.
In general (outside the context of TrendAnalysis) I think it makes sense to require our filter functions be implemented such that their outputs are tz-consistent with their inputs, so I think it's fine for TrendAnalysis to assume that if it passes a tz-aware aggregated Series to a filter function then it'll get a tz-aware mask back.
@cdeline Did you mention that you still have a bug with this? Could you provide an example that occurs with the most up to date version of this branch? Thanks!
linter failures are from #351 and can be ignored
__init__.py