Skip to content

Add env_package_list function to capture full environment listing

Duncan Macleod requested to merge duncanmmacleod/bilby:env_package_list into master

This MR adds a new bilby.core.utils.env_package_list() function that returns a list of package-information dicts 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.

Edited by Duncan Macleod

Merge request reports

Loading