Fix indexing of FieldTimeSeries with OnDisk backend and specified times#5515
Fix indexing of FieldTimeSeries with OnDisk backend and specified times#5515matt-graham wants to merge 2 commits intoCliMA:mainfrom
FieldTimeSeries with OnDisk backend and specified times#5515Conversation
|
There's a conflict --- let me know if you need help resolving. Also, we can bump the patch version since this usefully resolve a bug |
|
So it looks like the changes merged in #5492 will make the logic a bit more complicated here so will need to do a bit of a think to have these changes work with field time series potentially split across files. I could do something in spirit to the current design and initially assume Alternatively I could have Another alternative would be to avoid the branching by dispatching to different |
Co-authored-by: Mosè Giordano <[email protected]>
|
@simone-silvestri might need your input here |
Resolves #5505
Updates indexing logic in
getindexmethod forOnDiskFTSto check if time in filetimeseries/tgroup at specified indexnmatches time at indexnintimesattribute and if not try to find matching index / iteration key corresponding to this time. If an exact match for the time cannot be found an error is raised. Also adds tests to check indexing ofFieldTimeSerieswith different backends and specifiedtimesworks as expected.