icecube / skyllh

https://icecube.github.io/skyllh/
GNU General Public License v3.0
11 stars 5 forks source link

Add option to declare if the data should be stored within the event array of the TDM or within the DataField instance #139

Open martwo opened 1 year ago

martwo commented 1 year ago

The user should be able to define a data field by defining where the field data should be stored, i.e. either in the event array of the TDM or the DataField instance. This is necessary in particular for data fields that needs to be calculated before the event selection but must be available for all sources.

Maybe a is_event_data option should be added. If set to True the data will be stored within the event array of the TDM. Otherwise within the DataField instance.

https://github.com/icecube/skyllh/blob/af2821f8ac6d0be1f2855e923d317dcb16b8aea3/skyllh/core/trialdata.py#L44