Skip to main content

Diffusive nested sampling in Python

Project description

These are experimental Python bindings to the DNest4 sampler allowing the user to implement their models in Python. See the example(s) in examples for some demos for how you might do this.

Building

DNest4 relies on recent C++11 features so building with python can be fun. On a Mac, you might need to do something like:

MACOSX_DEPLOYMENT_TARGET=10.9 python setup.py install

If you only want the postprocessing scripts and don’t want to worry about building the bindings, you can run:

python setup.py install --without-cext

and then use it as follows:

import dnest

# NOTE: the path will default to the current working directory if you
#       don't give another path.
dnest.postprocess("/path/to/where/you/ran/your/model")

Author

These bindings were written by Dan Foreman-Mackey and they are licensed as part of DNest4 with the MIT license.

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-0.2.4.tar.gz (3.1 MB view hashes)

Uploaded Source

Built Distributions

dnest4-0.2.4-cp37-cp37m-manylinux1_x86_64.whl (722.8 kB view hashes)

Uploaded CPython 3.7m

dnest4-0.2.4-cp37-cp37m-manylinux1_i686.whl (697.6 kB view hashes)

Uploaded CPython 3.7m

dnest4-0.2.4-cp37-cp37m-macosx_10_6_intel.whl (239.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.6+ intel

dnest4-0.2.4-cp36-cp36m-manylinux1_x86_64.whl (722.9 kB view hashes)

Uploaded CPython 3.6m

dnest4-0.2.4-cp36-cp36m-manylinux1_i686.whl (698.5 kB view hashes)

Uploaded CPython 3.6m

dnest4-0.2.4-cp36-cp36m-macosx_10_6_intel.whl (128.9 kB view hashes)

Uploaded CPython 3.6m macOS 10.6+ intel

dnest4-0.2.4-cp35-cp35m-manylinux1_x86_64.whl (718.2 kB view hashes)

Uploaded CPython 3.5m

dnest4-0.2.4-cp35-cp35m-manylinux1_i686.whl (694.1 kB view hashes)

Uploaded CPython 3.5m

dnest4-0.2.4-cp35-cp35m-macosx_10_6_intel.whl (126.3 kB view hashes)

Uploaded CPython 3.5m macOS 10.6+ intel

dnest4-0.2.4-cp34-cp34m-manylinux1_x86_64.whl (710.9 kB view hashes)

Uploaded CPython 3.4m

dnest4-0.2.4-cp34-cp34m-manylinux1_i686.whl (688.3 kB view hashes)

Uploaded CPython 3.4m

dnest4-0.2.4-cp34-cp34m-macosx_10_6_intel.whl (124.7 kB view hashes)

Uploaded CPython 3.4m macOS 10.6+ intel

dnest4-0.2.4-cp27-cp27mu-manylinux1_x86_64.whl (699.7 kB view hashes)

Uploaded CPython 2.7mu

dnest4-0.2.4-cp27-cp27mu-manylinux1_i686.whl (672.3 kB view hashes)

Uploaded CPython 2.7mu

dnest4-0.2.4-cp27-cp27m-manylinux1_x86_64.whl (699.7 kB view hashes)

Uploaded CPython 2.7m

dnest4-0.2.4-cp27-cp27m-manylinux1_i686.whl (672.2 kB view hashes)

Uploaded CPython 2.7m

dnest4-0.2.4-cp27-cp27m-macosx_10_6_intel.whl (124.6 kB view hashes)

Uploaded CPython 2.7m macOS 10.6+ intel

Supported by

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