'Reproduction' page on pesummary web view
It would be great to have a page on the pesummary results for an event that details how to 'exactly' (as close as can be) reproduce the samples for a given event, this would necessarily include
- the configuration file given as input to the sampler
- a conda environment file (generated via
conda env export
) or a pip requirements file (generated viapip freeze
) to recreate the runtime environment - instructions on how to create the environment, then call
summaryrecreate
or similar to rerun the analysis
This would be a fantastic addition to our public data releases, so I'm happy to help make this happen.
Note that a conda environment package record can be spoofed, sort of, by manually compiling extra components and installing them into the environment, so it would be important to include some logic to verify that the conda package version for, say, lalinference
, is actually what was installed. Something like the following might work:
from lalinference import git_version as lalinference_version
if lalinference_version.tag is None:
print("This analysis was not generated from an official release of lalinference, and cannot be reproduced.")
I presume there would be something similar available for bilby
.