-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent LSTCam pixels ordering when importing using CameraGeometry.from_name #2484
Comments
This is not a bug, but expected behavior. Constructing a There are two solutions:
Solution 1 is preferred, as it should work in all situations and doesn't rely on the user knowing which geometry corresponds to the data being processed. |
Ah ok, I did not know of the origin of the geometry that comes from using |
Note that from_name() is not guaranteed to correspond with event data. Closes #2484
I added some info to the docstring in #2485 to be more clear, since this is not obvious, I agree! |
I guess once we have stable hardware and simulations, we could ensure that the loaded instrument info is the same, but for now, we keep changing things so that won't work! Originally I had envisioned the ability to switch between different sets of test data as in #738, but so far that's not implemented. In any case, it's always best to rely on reading the data from the exact file you are using. For observed, DL0 data products which currently do not contain this info, we will have to develop a solution. |
We may also just remove these methods now that we have real and simulated data to work with (#1978) |
Note that from_name() is not guaranteed to correspond with event data. Closes #2484
Note that from_name() is not guaranteed to correspond with event data. Closes #2484
The LSTCam pixel positions ordering obtained using
CameraGeometry.from_name('LSTCam')
differs from the ordering obtained usingsubarray.tel[1].camera.geometry.pix_x
Consequently, using
CameraGeometry.from_name('LSTCam')
leads to incorrect LST images as the pixels are arranged differently in the camera plane.To Reproduce
Steps to reproduce the behavior:
0.
ctapipe.__version__
: 0.19.3CameraGeometry.from_name('LSTCam').pix_x
andtel.camera.geometry.pix_x
(output of latter can also be seen in this tutorial -https://ctapipe.readthedocs.io/en/latest/auto_examples/core/InstrumentDescription.html#explore-some-of-the-details-of-the-telescopes)
Expected behavior
The ordering should be same in both cases (it is same for other telescopes (FlashCam, NectarCam, CHEC)).
Supporting information
Simple plots of pix_x and pix_y positions from both methods.
Additional context
The text was updated successfully, but these errors were encountered: