Skip to content

Ctapipe 25 #101

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Ctapipe 25 #101

wants to merge 10 commits into from

Conversation

Elisa-Visentin
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented May 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.50%. Comparing base (83417d9) to head (4a324dd).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #101      +/-   ##
==========================================
- Coverage   90.57%   90.50%   -0.07%     
==========================================
  Files          11       11              
  Lines        1337     1338       +1     
==========================================
  Hits         1211     1211              
- Misses        126      127       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Elisa-Visentin Elisa-Visentin marked this pull request as ready for review May 28, 2025 13:41
@Elisa-Visentin Elisa-Visentin requested a review from aleberti May 28, 2025 13:49
@jsitarek
Copy link
Collaborator

I had a look as well, and nothing suspicious caught my attention. We need to make sure to make a new version when this is merged (maybe bump to 0.6 ?)

@@ -885,6 +886,7 @@ def prepare_subarray_info(self):

# MAGIC telescope positions in m wrt. to the center of MAGIC simulations, from
# CORSIKA and reflector input card and recomputed (rotated) to be w.r.t. geographical North
reference_location = EarthLocation.of_site('lapalma')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if we should use the same default as the one used in ctapipe_io_lst, i.e. in https://github.com/cta-observatory/ctapipe_io_lst/blob/main/src/ctapipe_io_lst/constants.py#L78 . @jsitarek any opinion? I think it does not matter much, but better to have a "good" default already now and change it only if really needed later on.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed it would be safer, especially that the height is also one of the paramters

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed! Thank you :)

Copy link
Collaborator

@aleberti aleberti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left only one comment for the reference location. Everything else is OK!

@@ -17,6 +17,7 @@
from astropy.time import Time
from pkg_resources import resource_filename

from ctapipe_io_lst.constants import REFERENCE_LOCATION
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmmh I would not have introduced a dependency also on ctapipe_io_lst ... I would assume that those coordinates will not change frequently (if at all, maybe when more than one LST is included, but that's quite in the future). I would probably go into the direction of including those constants in constants.py and update them if really needed. @jsitarek opinions?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not have a strong opinion here. For ctapipe_io_magic this is an extra dependency which obviously is best to avoid if needed, but ctapipe_io_magic is either way always working together with magic-cta-pipe, where we have lstchain dependency, that needs ctapipe_io_lst, and all the versions still need to agree, so I do not see a big issue to leave it as it is now. But the option that you proposed is also fine with me.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can discuss that on Wednesday, so that we can collect opinions also from the rest of the group? Both options are fine for me, we just have to choose, but this is not extremely urgent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants