Add env_package_list function to capture full environment listing
This MR adds a new bilby.core.utils.env_package_list()
function that returns a list
of package-information dict
s for all packages in the environment, either using conda list
or pip list installed
(in that preference order), and modifies bilby.core.sampler.run_sampler()
to attach a new metadata attribute environment_packages
to the results.
Merge request reports
Activity
added 1 commit
- f2a1d47d - bilby.core.sampler: add environment_packages metadata
changed milestone to %1.3.0
- Resolved by Duncan Macleod
Please note that just
(name, version)
for each package is not enough to completely reproduce aconda
environment, that would require the build string for each package as well. I deliberately scoped the new function to only return name and version because that's all we can get frompip
- but one may consider includingbuild_string
as well specifically for conda environments.Edited by Duncan Macleod
added 1 commit
- 1489e4e6 - bilby.core: store environment_packages using pandas.DataFrame
mentioned in commit 0cf93ff6
mentioned in merge request pesummary!722 (merged)