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 details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.6+ intel

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m macOS 10.6+ intel

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5m macOS 10.6+ intel

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m

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

Uploaded CPython 3.4m macOS 10.6+ intel

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7m

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

Uploaded CPython 2.7m

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

Uploaded CPython 2.7m macOS 10.6+ intel

File details

Details for the file dnest4-0.2.4.tar.gz.

File metadata

  • Download URL: dnest4-0.2.4.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4.tar.gz
Algorithm Hash digest
SHA256 ec164532413599c45969ad8c20a83e2c9504a1ca943bc36c7e9bfb5b67135387
MD5 e71aee0f459469361b966751045adfc7
BLAKE2b-256 011a6544d138d3373c66094909947dee37ac184261955a1bfb6ba8d722fef3e6

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 722.8 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 213640e0005a1daf8804d1f0b38c2646cb57fc551e7e86f46e5b150830b10d19
MD5 c2e3a289f8519c92334e3b1b3689f4fc
BLAKE2b-256 b171ad818bc3097ffd0110c448ac5c5f8904b5d8ec3ff1c56cc38fa9bef7dace

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 697.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 1c475110993e521e49e57790f89adefbc25810e7f82da0b2568d45931a058357
MD5 1e701540a4af34a97c5b5beef053b4e2
BLAKE2b-256 b6456fb3561b5d4a3cd685ab848b7c8d868938fbfc892c728750f44d0ca404c6

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp37-cp37m-macosx_10_6_intel.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp37-cp37m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 239.2 kB
  • Tags: CPython 3.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp37-cp37m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 0ec79eed412ad808c733d26cd7654f72adfee2816f9c145c795d4308b31fda1c
MD5 19ef0b13240c61a928a6fdff2cc32bc9
BLAKE2b-256 4256b5c848d8f8cd928c615fa8c42887aac8b19596a9d63943e0dcaf2d85600d

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 722.9 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 872a6ac8ef3179642ebb3ca48fc7beefe4e771e5eb37f825cbbd7b271457c0b7
MD5 8b4d030a6d0ae9a5f1a71b8e65078b6b
BLAKE2b-256 92d3f34e12c2a3cf125d1f6685b8e1d3573d560b1cadf805eba8c13e918358b0

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 698.5 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 ad5866d80164420421e76e9ac9de7e546a684cc1ebda6bfd45a5e7d5036934ac
MD5 f93c40b061f33de3166ed1b73dee657e
BLAKE2b-256 8f4d35ac812a61436b3cfab1f4462995cdb6070f0630453cff0c010cbab6d1c7

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp36-cp36m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 128.9 kB
  • Tags: CPython 3.6m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 24195db9d16e716ba04362344c517dee0e98ab9de9c669b09563672b71ea052c
MD5 f59f7aa86f2753432e084e765faf7efb
BLAKE2b-256 f76dc067d00eb8804a0058caef114a661461317f56c4aafb8beb1099aafd1c3c

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 718.2 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 972cd09ffdbe96ff254a2f0530dc97403cf92ada4236f8e2b12dd6860ee7bbd0
MD5 ec2a539bea7b5fb60652ac3fd22bacd2
BLAKE2b-256 be4904e7144b9cf74cb46fd7567525f106f402f750d6c02558c86a91d52fe445

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp35-cp35m-manylinux1_i686.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 694.1 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 f3bb430138338edfbf2539c89d3dbe6f7c3e663adede987dfef81d8dccd27afc
MD5 59bacccb07cfa16f9d6ff3bab0c46ed2
BLAKE2b-256 5442737b606f0f0f7f1d17e0bfa0866f420c6bff8489b1d050757f07f537f96d

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 126.3 kB
  • Tags: CPython 3.5m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 3aa68968601f338aa3142128a7989fae81181cb351a630d0891334ed44ebc9a2
MD5 5c87bef9682f5dd82b19788b598460ad
BLAKE2b-256 aea1b684a530d39e87b667a10b6df088f517861cc7fc149da926c67892a8cd73

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 710.9 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f7f974e5b47a876a0aea35606e3f11634b58a78b90683a8fe59254e67c22589b
MD5 483818f0090937f80b3d3d1773b9955b
BLAKE2b-256 36f3fb0828cc74d9fb173c6acc31bc3176490412b4363e2fabb80f5f6ffd12d4

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp34-cp34m-manylinux1_i686.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 688.3 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 5b5e5cae526c45e0daa6010f045637a55d6a914ae01bb18a9b41bfe138f1660b
MD5 36f7b8914792a12bee8cbc6a730a0996
BLAKE2b-256 05752c0a2103e7094890d6151654aced698eb1a89927f9326267337f5735e0a3

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp34-cp34m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 124.7 kB
  • Tags: CPython 3.4m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 2d903597951c8bbab9469eb056140bdd99f67d3b576391b41cfecfc0b777ab3d
MD5 eb1a0c7fcfdd8786cf378d85e9daed87
BLAKE2b-256 9b45dca16e2b9b3d7f25878c39b2eb02dd57ae786f04b439d353749629045e39

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 699.7 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 000705d1d9d394af057e1f852ac47d08bf394704cc4f278785ed08c2c0b86605
MD5 ff235fdd43cae2b61c17417824dc67fe
BLAKE2b-256 b207fae004b9cfb809b6dfea94fe0d30940c22de74e531ad800ce412ea1e47f1

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp27-cp27mu-manylinux1_i686.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 672.3 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 56fc8c3237c70ce72bc541a99b4c071b18d0a6e5eee09d518ea7c0f15f38e9a6
MD5 b8049e39d162bbf78bfb1b0f5e424b9a
BLAKE2b-256 6f9cd47a804fd895a2b88ea089beec8f797d9a95a984c5b49eab5e50e39516cd

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 699.7 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6a9cd1100b3f76a7628529afacdf8af26c48e7bfe97e98e29fac7d30c4b7016c
MD5 7fa4e99eba4b12dbb4b3d4bfefaa074e
BLAKE2b-256 b4296e46cb21322e68cabc531ae75f3111e5ab7e5757695659bf61d4f8696610

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp27-cp27m-manylinux1_i686.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 672.2 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 f6103a20a8bd1bac6f41398d47774f45c3b32756adc4fbe275dc5e3851da0df8
MD5 ab954004bdab7c5945eb767b38f64753
BLAKE2b-256 973f943d41cb468513889129f7486d2d4df208dc67e1559374503f39acc3be49

See more details on using hashes here.

File details

Details for the file dnest4-0.2.4-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

  • Download URL: dnest4-0.2.4-cp27-cp27m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 124.6 kB
  • Tags: CPython 2.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for dnest4-0.2.4-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 c66b38b06e36e28c9a2a3714d8471241b690de58d9ce7811e9f536a2d858c2f0
MD5 ad51d86f658974a92645395bbbfcc9b2
BLAKE2b-256 7d215dee6b0e348ebfcb840b2f38a83ce7087903a8900acd5a7a7d8f55130a57

See more details on using hashes here.

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