Skip to main content

Plugin for using dnest4 with bilby.

Project description

dnest4-bilby

dnest4 plugin for bilby.

This plugin provides the dnest4 sampler in bilby.

Installation

This plugin is available via pip:

pip install dnest4-bilby

and conda:

conda install conda-forge:dnest4-bilby

Note: when installing via pip, you must install dnest4 separately.

Installing dnest4

dnest4 is available via conda, or can be installed from source following these instructions.

Caveats

  • dnest4 no longer provides a Python interface
  • The conda version of the dnest4 does not support numpy>2.0.
  • Due to changes in numpy and Python that are incompatible with dnest4 this plugin is only tested with Python < 3.11. It may be possible to compile a working version of dynest4 with more recent numpy and Python versions but this has not been tested.
  • This plugin is tested against dnest4 versions 0.2.4 and 0.3.3, the latest versions available via conda-forge and PyPI respectively.

Usage

Once dnest4-bilby is installed, the sampler can be used directly in bilby via the run_sampler function:

import bilby

likelihood = ...
priors = ...

bilby.run_sampler(
    sampler="dnest4",
    likelihood=likelihood,
    priors=priors,
    nlive=1000,
    ...
)

Usage with bilby_pipe

This plugin has not been tested with bilby_pipe.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dnest4_bilby-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dnest4_bilby-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file dnest4_bilby-0.1.0.tar.gz.

File metadata

  • Download URL: dnest4_bilby-0.1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dnest4_bilby-0.1.0.tar.gz
Algorithm Hash digest
SHA256 89bc2862e47e0c38a40d71e1ca497e98a509173084339cdfd0b64a1d6f61de44
MD5 41ca07316bf75fbb0e0aa3e4643d6afe
BLAKE2b-256 288d47297085b05b8126f2e6d1fad579b49c56196fe3a49ef4d25b8c22130f2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for dnest4_bilby-0.1.0.tar.gz:

Publisher: publish.yml on bilby-dev/dnest4-bilby

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dnest4_bilby-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dnest4_bilby-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dnest4_bilby-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 096e557e96b8164c8b629a2e4cac0da62df4ce5e7fb311568229d65ff4b6aa68
MD5 309ae480825b013b3320e9dfc16e25bd
BLAKE2b-256 bffcaa430cf716dacbb54785ad0d8cc12c94de2353f4da103144944b51792e68

See more details on using hashes here.

Provenance

The following attestation bundles were made for dnest4_bilby-0.1.0-py3-none-any.whl:

Publisher: publish.yml on bilby-dev/dnest4-bilby

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page