This adds a treemaker for producing information on lone S2 signals, as well as a separate treemaker that extracts basic info about all large S2s close to very-small-S2 events.
I also included a tiny fix to minitree_formats.py. In the code that checks if array fields occur, we currently raise an error when an empty dataframe is encountered. However are legitimate cases (the BigBeforeSmall treemaker is one of them) where a treemaker produces empty dataframes, and we don't want to crash a large minitree load just for this one check. Thus, I changed the behaviour of the array field check on empty dataframes to printing a warning message (and assuming there are no array fields).
This adds a treemaker for producing information on lone S2 signals, as well as a separate treemaker that extracts basic info about all large S2s close to very-small-S2 events.
See also this note and other notes linked on our general overview page.
I also included a tiny fix to
minitree_formats.py
. In the code that checks if array fields occur, we currently raise an error when an empty dataframe is encountered. However are legitimate cases (the BigBeforeSmall treemaker is one of them) where a treemaker produces empty dataframes, and we don't want to crash a large minitree load just for this one check. Thus, I changed the behaviour of the array field check on empty dataframes to printing a warning message (and assuming there are no array fields).