-
Notifications
You must be signed in to change notification settings - Fork 58
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
check and set trigger time #259
check and set trigger time #259
Conversation
nmma/em/analysis.py
Outdated
|
||
trigger_time = args.trigger_time | ||
print("trigger_time is not provided, analysis will continue using the time of first data point") #maybe change it to warning instead of print | ||
trigger_time=min_time #For now this will only work if data file is not in JSON or try block is executed successfully. |
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.
We should probably support json lightcurves, at least in the format that nmma itself creates from injections
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.
But yeah, this seems to be in line with what I was thinking for handling when a trigger time wasn't provided
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.
@tylerbarna Do you have any json LC for test?
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.
@tylerbarna Do you have any json LC for test?
Co-authored-by: Tyler Barna <57914086+tylerbarna@users.noreply.github.com>
Co-authored-by: Tyler Barna <57914086+tylerbarna@users.noreply.github.com>
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.
LGTM
Solves #256, incomplete
@tylerbarna Can you have a look at this?
Do not merge!