attach monitoring data to hdf5 file#2901
Conversation
|
Back to draft mode since new test files will be uploaded soon. Requires some updates then. |
|
Should be rebase to #2881 |
55d64e8 to
e0e4cd1
Compare
With the data format version bump of #2881 (and the additional here), the tests are failing because the interface |
|
As far as I can tell, the CI failure has nothing to do with data format versions. And this also should never be the case, as long as we support the older versions (which we should, to some point). |
|
E.g. this is simply a bug: The colon is wrong here, it needs to be |
|
I needed to give some thoughts about the different options in the merger component. As I see it now we have three main usecases to cover with this component:
This implies the following:
@maxnoe @mexanick please let me know if you agree so I can add this logic to the option of this component. |
cd5611b to
8db329b
Compare
Co-authored-by: Mykhailo Dalchenko <mexanick@users.noreply.github.com>
|
From my side this PR would be ready for review, we just had an internal discussion yesterday if we should allow or forbid merging monitoring data to the event data. What are your thoughts on this, @maxnoe @kosack? In the current version of this PR, we allow this behaviour. EDIT:
Answered by @maxnoe in discussion above |
add also a test to raise CannotMerge for invalid merge of different monitoring types
mexanick
left a comment
There was a problem hiding this comment.
LGTM
@maxnoe I think the only remaining open topic is considering the check whether the file contains simulation data. I would prefer to use metadata for it and not the negative event IDs. Re-sonar complexity complain, I'd accept it.
|
Yes, metadata is certainly better than the event ids, which shouldn't even exist, it's a very bad workaround due to a simtel limitation of not assigning unique event ids to calibration events. |
|
The only thing I see missing is the resolution of the I thought we agreed to replace |
This removes boolean flags of single-ob and attach-monitoring
Co-authored-by: Maximilian Linhoff <maximilian.linhoff@cta-observatory.org>
| " observation blocks. This option switches to merging multiple" | ||
| " chunks of events of the same ob." | ||
| ), | ||
| ), |
There was a problem hiding this comment.
You can keep this flag (and add one for the monitoring merging) by doing:
"single-ob": (
{"HDF5Merger": {"merge_strategy": "events-single-ob"}},
(
"By default, the merge tool assumes it is merging multiple"
" observation blocks. This option switches to merging multiple"
" chunks of events of the same ob."
),
)
|




This PR tweaks the merger component to add functionalities listed in #2900 (comment)
closes #2890