-
Notifications
You must be signed in to change notification settings - Fork 9
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
MCP upgrades: semi-automatic scripts and update of the current scripts (1 LST -> 4 LSTs); Torino team #154
Conversation
Running magicctapipe/scripts/lst1_magic/setting_up_config_and_dir.py:32:1: 'time' imported but unused
magicctapipe/scripts/lst1_magic/setting_up_config_and_dir.py:392:5: local variable 'MC_electrons' is assigned to but never used
magicctapipe/scripts/lst1_magic/setting_up_config_and_dir.py:393:5: local variable 'MC_helium' is assigned to but never used
magicctapipe/io/io.py:914:9: undefined name 'df_events' please fix those and at least the pyflakes tests will pass. |
magicctapipe/scripts/lst1_magic/lst1_magic_event_coincidence.py
Outdated
Show resolved
Hide resolved
magicctapipe/scripts/lst1_magic/lst1_magic_event_coincidence.py
Outdated
Show resolved
Hide resolved
Before you say this, We (I actually am the only responsible) have to reintroduce global variables TEL_NAMES or TEL_COMBINATIONS in 3 codes because, due to the PR splitting, this version is a 'hybrid' where the old (MAGIC+LST1) and the new (4 LSTs+MAGIC) version have been 'glued' at the DL1 stereo level. These variables (in RFs and DL1 to DL2) will disappear as soon as we merge the other PRs (RFs and DL1->DL3) and are adequately commented to allow us to remove them. To allow for an easier upgrade (i.e., deleting them) they are no more imported but copy-pasted where needed (BTW, if we define them in the io there should be some errors/crashes because they have the same name as the output of the telescope_combinations function) |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #154 +/- ##
==========================================
+ Coverage 36.63% 43.10% +6.47%
==========================================
Files 45 47 +2
Lines 5238 5644 +406
==========================================
+ Hits 1919 2433 +514
+ Misses 3319 3211 -108
☔ View full report in Codecov by Sentry. |
magicctapipe/scripts/lst1_magic/lst1_magic_event_coincidence.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stopped at io.
Some comments on code structure and naming. Bigger issue is the error raising code. It does 6 independent checks but doesn't reflect it in the error.
Please, don't delete the branch after the merge. We still need it to upload and modify some scripts (RF->DL3) and to add the needed tests (new PRs will be opened) |
why not on new branches? |
They are still an update of the current scripts towards 4 LSTs, just not pushed now to have a smaller PR. This way we will use only 3 branches (pipeline / IT scripts /tests) instead of at least 9. The fewer the number of local branches, the more easily we can work on them (otherwise we should delete local branches or clone again the repository...). So, if you don't have to close it, we can add the new scripts just after the merging and open a new PR from this same branch |
@Elisa-Visentin @ranieremenezes to have tests running again, please merge the master into this branch to get the latest changes. |
Alessio, do you want us to run black or do you want to fix the code layout with your next PR (pre-commit)? |
No need to do it in this PR, I merge it now. |
MCP upgrades: semi-automatic scripts and update of the current scripts (1 LST -> 4 LSTs); Torino team
Checking the differences between the two branches