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

Event optimize cleanup #1787

Merged
merged 11 commits into from
Jul 12, 2024
Merged

Conversation

devbhakt
Copy link
Contributor

Removed obsolete code that is no longer being used within event_optimize

  • Manually tracking the progress of the MCMC run has been removed since the emcee sampler has a built in progress bar
  • Global tracking of the maximum posterior has been removed as it was not working properly with parallel processing and the maximum posterior values were switched to being calculated using the metadata within the emcee sampler in the original parallel processing implementation.
  • Removed the custom timing class as it is not being used

Moved the portion of the code that generates a TOA object and weights from the photon data into a dedicated function.

  • The function loads in the photon data, creates a TOAs object using the photon data between the passed min and max MJD arguments, and the corresponding photon weights.
  • Removed the usepickle argument as the function checks the events file name to determine it is a pickle file or not.

@abhisrkckl
Copy link
Contributor

Please add a CHANGELOG entry

@abhisrkckl
Copy link
Contributor

Can you please check why the documentation build is failing?

@abhisrkckl
Copy link
Contributor

I think the issue is having the line ---- above the heading in the docstring (like Parameter) rather than below it.

@devbhakt
Copy link
Contributor Author

Should be fixed now! Thanks @abhisrkckl

@devbhakt
Copy link
Contributor Author

All tests have passed and the PR is ready for review

@abhisrkckl abhisrkckl merged commit 8c9a689 into nanograv:master Jul 12, 2024
7 checks passed
@devbhakt devbhakt deleted the event_optimize_cleanup branch August 9, 2024 16:17
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.

2 participants