SainsburyWellcomeCentre / aeon_mecha

Project Aeon's main library for interfacing with acquired data. Contains modules for raw data file io, data querying, data processing, data qc, database ingestion, and building computational data pipelines.
BSD 3-Clause "New" or "Revised" License
5 stars 6 forks source link

If using the `time` arg in `load`, the function errors if `time` is a pd.Series #292

Open jkbhagatio opened 11 months ago

jkbhagatio commented 11 months ago

The current docstring states that time can be a pd.Series, but this errors because the indices (instead of the values) get passed into chunk via time.groupby(by=chunk) https://github.com/SainsburyWellcomeCentre/aeon_mecha/blob/main/aeon/io/api.py#L102

We should choose to either explicitly not support or support (by pulling out the values) pd.Series of Timestamps