-
Notifications
You must be signed in to change notification settings - Fork 81
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: Added the CBCResult class to all gw examples #899
base: main
Are you sure you want to change the base?
ENH: Added the CBCResult class to all gw examples #899
Conversation
@MattiaEmma2022 it looks like the
If you want to avoid this process in future, run |
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 this Mattia! Looks good to me, however, I think the example in supernova_example
needs updating as well (it uses the GW likelihood).
Does it make sense to use a CBCResult for a supernova analysis? I suspect that will cause issues as the CBCResult assumes the existence of certain parameters. |
It might be worth looking at this in more detail. I was thinking of all the interferometer, cosmology and waveform arguments which I think will still work but there may be some others that work. That said, it does use the From the name though, I suppose it doesn't make sense to use it here. Perhaps this is an indication we should have a base |
Maybe, but I would suggest this is getting into the territory of "A foolish consistency is the hobgoblin of little minds" - i.e. I think in practise a GWResult with CBCResult subclass would be the correct way to implement it, but I don't think it is worthwhile (just my 2c). |
Added a line in each result of CBC sampling occurrences to specify the result_class to be CBCResult