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
When we compute event_basics, we set all defaults to nan and then overwrite it in processing. In most cases this makes sense, however, it creates issues sometimes. For example, if we have alt_s1 or alt_s2 area as nan, it means that alternatives do not exist and should have area of 0. This might be relevant for some of cut applications or event selection, when no explicit requirement for (non) existence of alternatives is made.
@terliuk this comes up every now and than indeed. It's a question of somehow choosing the defaults such that people don't by accident make wrong selections. This is a very non-trivial question because people will all do something different and/or might not check their data-format properly.
What would you argue makes most sense from your point of view?
my suggestion would be to use "common sense" (or "physical reality", whatever we name it) for it, so for areas of alternatives we should set 0, for parameters characterizing those non-existing peaks - nans, index -1 etc.
When we compute event_basics, we set all defaults to nan and then overwrite it in processing. In most cases this makes sense, however, it creates issues sometimes. For example, if we have alt_s1 or alt_s2 area as nan, it means that alternatives do not exist and should have area of 0. This might be relevant for some of cut applications or event selection, when no explicit requirement for (non) existence of alternatives is made.
straxen/straxen/plugins/event_processing.py
Lines 293 to 302 in b48fe42
The text was updated successfully, but these errors were encountered: