You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In d16e2e7 and subsequent PR #23, events in a multi-file lma dataset are now sorted by time by default. This occurs one line after the number_of_events variable is copied to event_id.
This means that before d16e2e7, number_of_events (xarray dimension) and event_id (xarray data var with dimensionnumber_of_events) were always identical, and after d16e2e7, this is no longer necessarily true (it could still be true, say if the user sorts the files before passing to pyxlma.lmalib.io.read.dataset(), but it isn't always true)
I'm not sure if these were ever guaranteed to be the same in the first place. If they were, it feels kind of redundant(?). I had always assumed this variable was there to represent the IDL xlma's event ID, but I had never bothered to check this... and the rename means that this hypothesis was a bad assumption.
The text was updated successfully, but these errors were encountered:
wx4stg
added a commit
to wx4stg/xlma-python
that referenced
this issue
Jul 1, 2024
In d16e2e7 and subsequent PR #23, events in a multi-file lma dataset are now sorted by time by default. This occurs one line after the
number_of_events
variable is copied toevent_id
.This means that before d16e2e7,
number_of_events
(xarray dimension) andevent_id
(xarray data var with dimensionnumber_of_events
) were always identical, and after d16e2e7, this is no longer necessarily true (it could still be true, say if the user sorts the files before passing topyxlma.lmalib.io.read.dataset()
, but it isn't always true)I'm not sure if these were ever guaranteed to be the same in the first place. If they were, it feels kind of redundant(?). I had always assumed this variable was there to represent the IDL xlma's event ID, but I had never bothered to check this... and the rename means that this hypothesis was a bad assumption.
The text was updated successfully, but these errors were encountered: