morphology_parameters: AttributeErrror #2309
-
Hi,
whereas other events (same script, same input file) are well reconstructed or only return a warning
which needs this Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi @Elisa-Visentin, it looks like you've come across a bug! Please create an issue reporting the problem 🙏 Probably some of your image contains single pixels that somehow survive cleaning and thus result in neightbour matrices that contain only a single value and are thus not proper numpy arrays, which is why the comparison results in a bool type variable instead of an array of values that does have the |
Beta Was this translation helpful? Give feedback.
-
Normally, we require events to have at least a couple of pixels after the cleaning to be included in the parametrizations, which is probably why this wasn't noticed before. |
Beta Was this translation helpful? Give feedback.
-
@Tobychev we can just convert discussions into issues |
Beta Was this translation helpful? Give feedback.
-
See #2316 |
Beta Was this translation helpful? Give feedback.
-
Thank you. Actually, in the script (magic-cta-pipe, lst1_magic_mc_dl0_to_dl1.py), events are skipped before parameterization only if no pixel survive the cleaning step, and morphology parameters were not evaluated up to now (I think) so I never run into this error before. Sorry (I didn't want to disturb you so much) |
Beta Was this translation helpful? Give feedback.
-
@Elisa-Visentin You identified a real issue, which I opened in #2316, so please don't worry about bothering us. Instead, keep bothering us a bit more if you find more issues ;) |
Beta Was this translation helpful? Give feedback.
Hi @Elisa-Visentin, it looks like you've come across a bug! Please create an issue reporting the problem 🙏
Probably some of your image contains single pixels that somehow survive cleaning and thus result in neightbour matrices that contain only a single value and are thus not proper numpy arrays, which is why the comparison results in a bool type variable instead of an array of values that does have the
sum
attribute.