-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix triggering of telescopes in light emission package #1128
Conversation
When running the script (with explicitly giving the DNUM_TELESCOPES=1), sim_telarray still sets up four telescopes.
|
I would also suggest avoiding using the |
This comment has been minimized.
This comment has been minimized.
This would need a change in sim_telarray. I have added an issue #1132 |
This comment has been minimized.
This comment has been minimized.
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.
See comments below. I think the missing unit test is also the reason why sonarq is failing.
.gitignore
Outdated
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.
Please remove those changes. They seem to be more related to your local environment?
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.
I have noticed these files are sometimes created from the light emission package when interrupted before finishing.
Not sure how the .swp file has been created, but I can remove it if it is not appearing for you.
@@ -398,6 +354,26 @@ def remove_line_from_config(file_path, line_prefix): | |||
|
|||
return command | |||
|
|||
def _remove_line_from_config(self, file_path, line_prefix): |
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.
Do you have a unit test for this function? I didn't see it.
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.
Thanks for pointing that out. A test is included now.
…t-emission-trigger-fix
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Analysis Details0 IssuesCoverage and DuplicationsProject ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w |
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.
Great, thank you!
Deleting the array trigger at two different positions in the code seems to be working for the layout and for the variable case. The same procedure for the axes offsets is not successful at the moment for the varying distance case.