First step of implementing CEP-002: Change container structure#2204
First step of implementing CEP-002: Change container structure#2204maxnoe wants to merge 1 commit into
Conversation
9a4bb8e to
1e8ad14
Compare
|
Before I continue changing everything, could you review the new container structure? I think it's already a big step in the right direction, as the structure is much simpler, we could get rid of many indirections... |
|
|
Because all our telescopes are alt/az mounts, so this is the actual information that is monitored.
Because that's the reference point the array is tracking, which might be in sky-fixed coordinates.
Isn't this accomplished by adding the
I think it's important to distinguish invalid from valid data, 0 trigger pixels are possible (e.g. for pedestal events which are randomly triggered), so better distinguish. Same for the other positive integers. |
Just nice to have I guess. |
That's connected to all the other |
ce1d8ad to
352b041
Compare
|
The Why do we save the array event reconstructions at telescope level again? This is a little bit confusing to me |
The The inheritance here is just to get the same fields, but I agree that it's confusing that |
352b041 to
c522715
Compare
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Can we add a |
900249d to
bd7d777
Compare
|
Hi all, I rebased this on the current main and squashed the commits into one, to ease follow-up rebases when we make updates to main. I'd appreciate a fresh review now. I suggest to first only review the container structure in ctapipe.containers (beware, this is collapsed by default) before reviewing any of the resulting code changes. Once we are happy with the container structure and renaming, I'll fix up the rest of the code and we can commence the review there. |
On this part. This, to me, is related to how people parse the file and shouldn't be in the container itself, or if it is, should be hidden and not publicly exposed (even if in python, private just means harder to type). But that's a minor comment and not the main purpose of CEP-002. |
|
(Sorry, commented on file without realizing it wasn't container.py anymore, got carried away.) |
1646ac4 to
c50f496
Compare
|
@kosack @mexanick This is now rebased on current main (not fun!) and locally tests are passing again, but I see a lot of warnings I didn't expect, so I'll continue tomorrow. In any case, I would be very helpful if you could already start reviewing the changes in the container definitions and maybe play around a bit interactively with the new structure. |
40d47be to
0bdd61c
Compare
|
There is one change in the file format here as well, not just to the in-memory containers: to mirror the move of trigger information to dl0, this also addresses #2374 (and #2952) which better conforms with the CTAO data model. This however should be implemented in a backwards-compatible way (reading old files with these containers stored in |
0bdd61c to
0221338
Compare
|
|
||
| Fore more details, see :ref:`cep-002`. | ||
|
|
||
| With this, also the container structure itself has been largely refactored. |
There was a problem hiding this comment.
Add migration guide details here.
0221338 to
7a6a908
Compare
mexanick
left a comment
There was a problem hiding this comment.
I think the DL1 trigger table paths should be removed as that tables do not exist anymore
These are crucial for backwards compatibility with older data and are used in e.g. the We do not remove compatibility with older data formats in this pull request. |
7a6a908 to
66049b3
Compare
|
There was a problem hiding this comment.
EDIT: never mind, I was looking at RandomForestRegressor_energy and not RandomForestRegressor_tel_energy
I think there is an iteration bug: I loaded an events file with TableLoader and with EventSource, and compared the first event's energy and get different results for the telescope-wise energy:
kosack
left a comment
There was a problem hiding this comment.
Looks very good! i don't see any major issues, and anything else can be cleaned up in future PRs. I guess you still want to add a migration guide, but I can re-approve once that is done.
|
Note that I opened #2997 to fix a long-standing bug, which made exploring the new structure a bit less painful interactively. |
|
FYI: here is a PR in the |
66049b3 to
94c2ca6
Compare




Uh oh!
There was an error while loading. Please reload this page.