NREL / flasc

A rich floris-driven suite for SCADA analysis
https://nrel.github.io/flasc/
BSD 3-Clause "New" or "Revised" License
31 stars 18 forks source link

[BUG] return_index_mapping option needed in df_downsample #52

Closed misi9170 closed 1 year ago

misi9170 commented 1 year ago

Is there an existing issue for this?

Current Behavior

A recent feature that updated df_downsample() removed the return_index_mapping flag and the corresponding data_indices output, breaking this functionality for some users.

Expected Behavior

df_downsample() should take return_index_mapping as a flag and, when this flag is True, return an array data_indices that maps indices in the high resolution input data to indices in the downsampled output data.

Steps To Reproduce

No response

Environment

- OS:
- pip environment (can be retrieved with `pip list`):

Anything else?

No response