Skip to main content

Python bindings for the NEST noble element simulations

Project description

nestpy (beta status)

Build Status DOI PyPi version Project Status: Active – The project has reached a stable, usable state and is being actively developed.

These are the Python bindings for the NEST library, which provides a direct wrapping of functionality. The library is not Pythonic at this point but just uses the existing naming conventions from the C++ library.

You do not have to have NEST already installed to use this package.

Installing from PyPI

For 64-bit Linux or Mac systems, instally 'nestpy' should just require running:

pip install nestpy

You can then test that it works by running the example above.

Installing from source

Requirements: You must have CMake>=2.8.12 and a C++11 compatible compiler (GCC>=4.8) to build.

First, you must check out this repository then simply run the installer:

git checkout https://github.com/NESTCollaboration/nestpy
cd nestpy
python setup.py install

Usage

Python bindings to the NEST library:

import nestpy

# This is same as C++ NEST with naming                                                                            
nc = nestpy.NESTcalc()

A = 131.293
Z = 54.
density = 2.9 # g/cm^3                                                                                            

interaction = nestpy.INTERACTION_TYPE(0) # NR                                                                     
E = 10 # keV                                                                                                      
print('For an %s keV %s' % (E, interaction))

# Get particle yields                                                                                             
y = nc.GetYields(interaction,
                 E,
                 density,
                 124, # Drift field, V/cm                                                                         
                 A,
                 Z,
                 (1,1))

print('The photon yield is:', y.PhotonYield)

print('With statistical fluctuations', nc.GetQuanta(y, density).photons)

For more examples on possible calls, please see the tests folder.

Support

  • Bugs: Please report bugs to the (issue tracker on Github)[https://github.com/NESTCollaboration/nestpy/issues] such that we can keep track of them and eventually fix them. Please explain how to reproduce the issue (including code) and which system you are running on.
  • Help: Help can be provided also via the issue tracker by tagging your issue with 'question'
  • Contributing: Please fork this repository then make a pull request. In this pull request, explain the details of your change and include tests.

Technical implementation

This package is a pybind11 wrapper of NEST that uses (TravisCI)[https://travis-ci.org] to build binaries using the (manylinux)[https://github.com/pypa/python-manylinux-demo] (Docker image)[https://www.docker.com].

See AUTHORS.md for information on the developers.

Citation

When you use nestpy, please say so in your slides or publications (for publications, see Zenodo link above). You can mention this in addition to how you cite NEST. This is important for us being able to get funding to support this project.

History

1.0.0 (2018-08-18)

NESTv2.0.0

  • First release intended for general public.
  • Mac OSX support (#10)
  • Complete tests and various bug fixes (#13)
  • Documentation, citation, and technical detail writing

0.2.3 (2018-08-14)

NESTv2.0.0

  • Still working on PyPI

0.2.2 (2018-08-14)

NESTv2.0.0

  • Fix lack of deploy of release to PyPI

0.2.1 (2018-08-14)

NESTv2.0.0

  • Fix tests that were breaking only in deploys

0.2.0 (2018-08-14)

NESTv2.0.0

  • Fully wrapped NEST (PR #5)

0.1.1 (2018-08-14)

NESTv2.0.0

  • First release that deploys on PyPI. Limited functionality. (PR #2)

0.1.0 (2018-08-14)

NESTv2.0.0

  • Initial release

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

nestpy-1.0.1.tar.gz (33.2 kB view details)

Uploaded Source

Built Distributions

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

nestpy-1.0.1-cp37-cp37m-manylinux1_x86_64.whl (163.5 kB view details)

Uploaded CPython 3.7m

nestpy-1.0.1-cp37-cp37m-manylinux1_i686.whl (163.6 kB view details)

Uploaded CPython 3.7m

nestpy-1.0.1-cp37-cp37m-macosx_10_7_x86_64.whl (152.1 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

nestpy-1.0.1-cp36-cp36m-manylinux1_x86_64.whl (163.5 kB view details)

Uploaded CPython 3.6m

nestpy-1.0.1-cp36-cp36m-manylinux1_i686.whl (163.6 kB view details)

Uploaded CPython 3.6m

nestpy-1.0.1-cp36-cp36m-macosx_10_7_x86_64.whl (152.1 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

nestpy-1.0.1-cp35-cp35m-manylinux1_x86_64.whl (163.5 kB view details)

Uploaded CPython 3.5m

nestpy-1.0.1-cp35-cp35m-manylinux1_i686.whl (163.6 kB view details)

Uploaded CPython 3.5m

nestpy-1.0.1-cp35-cp35m-macosx_10_6_x86_64.whl (152.1 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

nestpy-1.0.1-cp34-cp34m-manylinux1_x86_64.whl (163.1 kB view details)

Uploaded CPython 3.4m

nestpy-1.0.1-cp34-cp34m-manylinux1_i686.whl (163.3 kB view details)

Uploaded CPython 3.4m

nestpy-1.0.1-cp34-cp34m-macosx_10_6_x86_64.whl (154.6 kB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

nestpy-1.0.1-cp27-cp27mu-manylinux1_x86_64.whl (164.1 kB view details)

Uploaded CPython 2.7mu

nestpy-1.0.1-cp27-cp27mu-manylinux1_i686.whl (164.1 kB view details)

Uploaded CPython 2.7mu

nestpy-1.0.1-cp27-cp27m-manylinux1_x86_64.whl (164.1 kB view details)

Uploaded CPython 2.7m

nestpy-1.0.1-cp27-cp27m-manylinux1_i686.whl (164.0 kB view details)

Uploaded CPython 2.7m

nestpy-1.0.1-cp27-cp27m-macosx_10_6_x86_64.whl (152.7 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

Details for the file nestpy-1.0.1.tar.gz.

File metadata

  • Download URL: nestpy-1.0.1.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for nestpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 db1aa70019c5bf7dad33d75accd4f934f5c9be8ea0731d3a07a4b95c2deb5e36
MD5 60a7ed0eddd7221cfe31be01ff99eb1b
BLAKE2b-256 2ca2a0b6d200f6ef0d802fdaab4c91b63e3c217af6dd4b9379870810161ce0a4

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 163.5 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 529244eeec2493e9a197d3d57f2c472c98a387db60497a990d9fc1dbf68e2dd1
MD5 91845947534b8a4a949125bc0a9ddbe6
BLAKE2b-256 43869581b5b82f7e89f3edd66d1fec74db3a555c3e682825c5f314cee73c01ea

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 163.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 bc6af0160e678e3002c17bd02cb527310ea86294c841609f55a9adc9cdff99fa
MD5 0c70643303bc94c95589bca9365ae8d6
BLAKE2b-256 34f49708d2a8e6f548edffaa25c022a5767f4f172381c77e4f7547b968b8a3e2

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 152.1 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for nestpy-1.0.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 caea894cd78201432b985561016e09b0b060f1836b6d5308d491473342635c0d
MD5 974b1cec18a391e3aab5a7184675212a
BLAKE2b-256 926d6e10565a507a10630317ac7be90c7204babc5caa86e782c39d945f4c1b48

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 163.5 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f3e5b1f04264cf40ed60c0948a118e87144dd30d7a7ac60ea2e644fc3a39f4f1
MD5 711f427aa6399443f0e1c51fb74e7877
BLAKE2b-256 65d3675a060ef82096af3061f1e2524dd635ab689dc32f60bfe5ae374652f9aa

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 163.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 74fbcfefb6f0768c1cb2538556779c4b4e94a9178b0f3bf29baf2811bdc69f11
MD5 ad579e4faa8252ae21f4b83b046cf14d
BLAKE2b-256 07ee85f0235030b9eff94a17def2bb0ca06ee3bf2571231facf4a7847cf20cbd

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 152.1 kB
  • Tags: CPython 3.6m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for nestpy-1.0.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 92536b87cbf63739f5ac1a3711cf382ef76260c61795028f3e1853bfceb3b806
MD5 0976759aed0c9b47b711498522dd51d7
BLAKE2b-256 97b458ec7e0e7f68b10f2d7ab43cdc7f565df12ee8f3f4828a43933eada59004

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 163.5 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 93e1b4f48db77e6e44676b7c6c1d60ea5e197694063ee24d61bb4cb0298a3c56
MD5 fa91751ef7f288eada5509993c24d7f1
BLAKE2b-256 b09ab5c32968cfc54dc42a844b41c2fd09352694e1d618a3dcadf24990294ffa

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp35-cp35m-manylinux1_i686.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp35-cp35m-manylinux1_i686.whl
  • Upload date:
  • Size: 163.6 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 2b1cd7ab80a9c76a9d4a55b4e07ad07d78a117599ac801de91b04770cef17453
MD5 096a957f2e4f3126480e20db4876584a
BLAKE2b-256 af3a2cf547c81812f52505e9b555d5a996d94ffd940861cec96de72535a105ea

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp35-cp35m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 152.1 kB
  • Tags: CPython 3.5m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

File hashes

Hashes for nestpy-1.0.1-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 49f1094d2cbff94323a423f9fcd9625d022919bce2f249ea6dcddcb4862998e4
MD5 47e02d8cbd9f221516169083da2504c3
BLAKE2b-256 2cc4aa19dc7a056e24f462661bdb30187c026765601a64a60759d580799ff0ef

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 163.1 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f544948acba6c48ee56a82cd033d2cdbc5c11bd17a60e39f3decff73eef460dc
MD5 e37c09ba87b84ed79a89e6c28438bc4e
BLAKE2b-256 6ec20f43a3ea959e036c464f54089631321c065bea278049ade459ca855232c5

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp34-cp34m-manylinux1_i686.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 163.3 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 be6c19877a00bea8289443f9ce88f278f0d4c99e31d5fbff42e8cbbbf602c10f
MD5 c21c195212feba2479c0da0ffaa72977
BLAKE2b-256 b919b7278a10b807384ee3d1e5e94a2a14c04423de7781b847868a6c48d396f5

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp34-cp34m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp34-cp34m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 154.6 kB
  • Tags: CPython 3.4m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/27.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.4.5

File hashes

Hashes for nestpy-1.0.1-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 fb8c4bce4a22e30c03ee99e62bab25923e13d0f66aa0c8f426ffe255c7c1c64e
MD5 0ed824e4f87ad9c163e1add0d11a9d30
BLAKE2b-256 fc49222ed4e562a2ab94210c24d7398c6df4000adb72352fdde325cfae52b0cb

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 164.1 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7b5c0d4adc77472c251f1306690c95c6d089ccc287af4380124e21052a5a901b
MD5 d2c9745464dfc98a9da9c8d5e99816a7
BLAKE2b-256 d3d738be40ea3db99118592e9dedb5de6baad5ebfd62709cc1e70eca5a22870c

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp27-cp27mu-manylinux1_i686.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 164.1 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 2b3ee1798b9ffc502935985b8d925087bdadedc54e4791411d4efbb838c109d9
MD5 3804ca498819cef7f918b2f410ef4f99
BLAKE2b-256 80349740feb4f212502e39849138662602a5832c75f158185f7bee3a482dfb08

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 164.1 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 77a030b70056546d539b7f45d017a0f57de8b669dabb4c22560b977b201e1193
MD5 287fd9bf7212e3adb131aba6881a5e5c
BLAKE2b-256 912c1eab03ea490c52df408449d969fe5b4a64d1c53b83d327f7c6cb3958b24f

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp27-cp27m-manylinux1_i686.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 164.0 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for nestpy-1.0.1-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3bb94915a60c5aba6e5bf2c27bcf0ba3942debc0882d957e181b6788ff30ebcc
MD5 d516136340f905155e28e4a3be836062
BLAKE2b-256 967e9d9312655889f000a412e29f4529b56e314817f7bccf35866140ec34a9bb

See more details on using hashes here.

File details

Details for the file nestpy-1.0.1-cp27-cp27m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: nestpy-1.0.1-cp27-cp27m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 152.7 kB
  • Tags: CPython 2.7m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15

File hashes

Hashes for nestpy-1.0.1-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 d83564d0dc247b96d4d3b119936cd51f786c2526aa464b8bb6dbfbf3a2c010e9
MD5 69097f833dd83ac15d561e69ad4a36f1
BLAKE2b-256 b10748214459171535dcf695ca8705d13db1a2bacb563ebf5ac7b1858b8e6701

See more details on using hashes here.

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