-
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
CompactBinaryCoalescenceResult methods returning different objects #871
Comments
Thanks for the report @foocheng are you able to provide a working example to help with debugging? |
Hi @ColmTalbot, after some digging it looks like the issue is with accessing parallel_bilby results with the CBCResult class. I realise this might be an issue to potentially open on the parallel_bilby channel instead -- regardless, for completion here is the explanation and a minimal working example. Inside Minimal Working Example:Creating a parallel_bilby generated result file (similar to this minimal example for bilby_pipe, but for parallel_bilby). Run the following command to create injection data Create result file with parallel_bilby: Then, when trying to call the results, |
Thanks, this is very helpful! I agree there are two issues:
|
I think this might be related to this logic. From a quick test, it seems that when loading an From looking at the code, I also think the type of result saved is meant to take priority at the moment (and does for the |
We should add some tests to ensure everything is consistent and the correct class is being loaded. |
This issue is relevant to
bilby.gw.result.CompactBinaryCoalescenceResult
. It seems that callingCompactBinaryCoalescenceResult.from_json("...")
returns the correctbilby.gw.result.CompactBinaryCoalescenceResult
object, while callingCompactBinaryCoalescenceResult.from_hdf5("...")
returns only abilby.core.result.Result
object, meaning the resulting object will not have the class properties of the full gw.result.CBCResult class.The text was updated successfully, but these errors were encountered: