mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-28 10:47:30 +08:00
5e3b949fc6
test_resample now fully covers the resample module. Fix a bug exposed by increased coverage, where daily aggregation on `high` would return `nan` for an asset instead of 1) during the course of day `1d` history was called on non-consecutive minutes and 2) either, a) the value for the previously inspected dt was `nan` or b) there were only `nan`s between the previous and current dt. `low` had a similar bug which was only triggered if the value for the previously inspected dt was `nan`.