Skip to content
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

Conversation

sahiljhawar
Copy link
Member

@sahiljhawar sahiljhawar commented Oct 6, 2023

Solves #256, incomplete
@tylerbarna Can you have a look at this?

Do not merge!


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.
Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Member Author

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?

Copy link
Collaborator

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?

@sahiljhawar here's one

nmma/em/analysis.py Outdated Show resolved Hide resolved
nmma/em/analysis.py Outdated Show resolved Hide resolved
sahiljhawar and others added 3 commits October 6, 2023 17:59
Co-authored-by: Tyler Barna <57914086+tylerbarna@users.noreply.github.com>
Co-authored-by: Tyler Barna <57914086+tylerbarna@users.noreply.github.com>
Copy link
Member

@mcoughlin mcoughlin left a comment

Choose a reason for hiding this comment

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

LGTM

@sahiljhawar sahiljhawar merged commit 27612b2 into nuclear-multimessenger-astronomy:main Oct 6, 2023
@sahiljhawar sahiljhawar deleted the add_trigger_time branch January 25, 2024 18:18
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