Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Release history Release notifications

Download files

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

Files for dnest4, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size dnest4-0.2.4-cp27-cp27m-macosx_10_6_intel.whl (124.6 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp27-cp27m-manylinux1_i686.whl (672.2 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp27-cp27m-manylinux1_x86_64.whl (699.7 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp27-cp27mu-manylinux1_i686.whl (672.3 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp27-cp27mu-manylinux1_x86_64.whl (699.7 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp34-cp34m-macosx_10_6_intel.whl (124.7 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp34-cp34m-manylinux1_i686.whl (688.3 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp34-cp34m-manylinux1_x86_64.whl (710.9 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp35-cp35m-macosx_10_6_intel.whl (126.3 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp35-cp35m-manylinux1_i686.whl (694.1 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp35-cp35m-manylinux1_x86_64.whl (718.2 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp36-cp36m-macosx_10_6_intel.whl (128.9 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp36-cp36m-manylinux1_i686.whl (698.5 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp36-cp36m-manylinux1_x86_64.whl (722.9 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp37-cp37m-macosx_10_6_intel.whl (239.2 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp37-cp37m-manylinux1_i686.whl (697.6 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size dnest4-0.2.4-cp37-cp37m-manylinux1_x86_64.whl (722.8 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size dnest4-0.2.4.tar.gz (3.1 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page