-
Notifications
You must be signed in to change notification settings - Fork 35
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
refactor get_time_delay function in rno-g detector #732
Conversation
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.
did you test that it gives consistent results? I added some comments.
Nope :( |
Addressing Steffens comments
Maybe a more general question also to @cg-laser, @sjoerd-bouma and @philippwindischhofer : I do not like this implementation with the |
okay I removed the function |
Hey @fschlueter sorry to be slow, just catching up. I think for most (non-expert) use-cases, we don't need to look separately at the cable delay. The (relative) delay between two separate signal chains is what is most important, I think. |
@shallmann do you want to approve? |
on it... just looking at the changes once more now |
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 check if the print in the main is intended. Otherwise good to go.
print(det.get_time_delay(13, 0)) | ||
print(det.get_time_delay(13, 0, cable_only=True)) | ||
# print(det.get_time_delay(13, 0, cable_only=False, use_stored=False)) | ||
print(det.get_time_delay(13, 0, cable_only=True, use_stored=False)) |
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.
The optional argument now no longer exists, no?
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 cleaning up!
This reduces code for the most common way of using the function
cable_only=False
use_store=True