Add env_package_list function to capture full environment listing
Compare changes
Files
2+ 2
− 1
@@ -6,7 +6,7 @@ import bilby
@@ -175,6 +175,7 @@ def run_sampler(
Maintenance will be performed on git.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 22 April 2025 starting at approximately 9am PDT. It is expected to take around 30 minutes and there will be several periods of downtime throughout the maintenance. Please address any comments, concerns, or questions to the helpdesk. This maintenance will be upgrading the GitLab database in order to be ready for the migration.
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.