-
Notifications
You must be signed in to change notification settings - Fork 58
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
Move best_fit.json into *_result.json #159
Comments
I don't think that bestfit results should go to |
I don't think that the bestfit lightcurve and associated times will meaningfully add to the size of the result json file
My rationale for adding it to the result json is that the result json file can essentially function as a single file that contains all the necessary information for most post-fitting analysis one would conduct. Placing the best fit lightcurve inside of the result json wouldn't be all that problematic for new users provided we add a blurb in the documentation about accessing it, especially because up to this point users have had to regenerate the lightcurve if they wanted to do any additional analysis. Because of the structure of json files, the code required to extract a best fit lightcurve from a result json vs a separate file will be almost identical.
I usually see mine top out at a few megabytes, but I only really touch the EM side of things. Would this have implications for joint analysis? |
I was looking through the code as well as bilby documentation to figure out where/how result.json is created, though I wasn't able to pinpoint it |
Or just put everything into an hdf5 file? |
Yes, I think so. I had few runs where the the parameter space was 54D, and the result.json was as big as as 100MB. Though I don't think so that any inference would be this consisting of this large parameters unless I add my thing. However, time would still be |
I think check |
Fetching from a large 50+MB JSON is painstakingly long. |
Maybe open an issue with bilby if hdf5 files are not supported. It sounds like something our team should consider helping them implement as the error marginalization you are working on could lead to some large parameter spaces. |
Okay. I will look into it. |
@mcoughlin bilby supports both |
@sahiljhawar @tsunhopang maybe one of you move us to an hdf5 setup then? |
@mcoughlin Trying a run with hdf5 to see the compression. |
if we do end up moving to an hdf5 setup, I think it would be good to retain an option to save results to a json |
since @tsunhopang already pushed an update with |
We don't need to, can be left upon the user to decide. |
|
Feature Summary
alter behaviour of the
bestfit
flag to write the best fit data points to the result.json file rather than a separate fileUsage / behavior
alteration to existing bestfit flag behaviour
Alternative Solutions
If possible, it would be good to "extract" the best fit lightcurve at an earlier point in the fitting rather than calling generate_lightcurve after the fitting has concluded, though I'm unclear as to where this could be accomplished
Implementation details
Make changes to nmma/em/analysis.py
Additional context
Tweaks to pr #147, related to issue #138
The text was updated successfully, but these errors were encountered: