-
Notifications
You must be signed in to change notification settings - Fork 80
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
ENH: add cosmology to CBC result #867
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a7d7465
ENH: add `cosmology` to CBC result object
mj-will 6248fca
TST: add test for `cosmology` in CBC result object
mj-will 496a80e
MAINT: specify cosmology in meta data when using `run_sampler`
mj-will aa778f5
MAINT: move cosmology to meta data
mj-will c4e51b2
TST: update cosmology test in result tests
mj-will 6b9e64b
ENH: add support for saving astropy cosmologies in HDF5 files
mj-will 170b5b3
ENH: improve how astropy objects are encoded/decoded
mj-will f8999c6
TST: switch to using pytest's tmp_path fixture
mj-will cd902d6
ENH: add support for deconding astropy and bilby types from hdf5 files
mj-will d84d656
TST: add save and load test for CBC result
mj-will 66479be
MAINT: remove cosmology from meta data in `run_sampler`
mj-will 8b0d541
MAINT: move cosmology to global meta data
mj-will 3fc3289
TST: update cosmology test
mj-will 1a274bb
MAINT: fix `decode_astropy_cosmology` for legacy result files
mj-will File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'm not wild about having this import here, I think it could be avoided, but since it is only a debug message I'm happy to let it slide for a while.
unrelated: We could consider changing this function to use multiple dispatch at some point down the road, that would avoid ugly import tests and also allow downstream users to add their own encoding/decoding.
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.
Yeah, I agree. At the time, I couldn't come up with a clean alternative.
On multiple dispatch: that's an interesting option, might be something to bring up on a dev call.