Python bindings for the NEST noble element simulations
Project description
nestpy (beta status)
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 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 to build binaries using the manylinux Docker image.
- Help from Henry Schreiner, which included a great binding tutorial
- Implementation also based on this
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
Patch releases mean (the Z number in X.Y.Z version) that the underlying physics has not changed. Changes to the NEST version will always trigger a minor or major release. If this library changes such that end users have to change their code, this may also trigger a minor or major release.
1.1.3 (2018-08-18)
NESTv2.0.0
- Release to world.
- Cleanup (#15)
1.0.3 (2018-08-18)
NESTv2.0.0
- README broken links fixed
1.0.2 (2018-08-18)
NESTv2.0.0
- Metadata (classifier in setup.py, badges, chat) (#14)
1.0.1 (2018-08-18)
NESTv2.0.0
- Retrigger release for PyPI deployment
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for nestpy-1.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb49d32a4a99c8987e7058badd72db90878c1b4c229da1bfcddc19870c324629 |
|
MD5 | d825d6675674df8d355d789aed37dad2 |
|
BLAKE2b-256 | edc3d4ca03db2ae70dd998b55f8a6ce72413922b450834e96e28790a37d99f02 |
Hashes for nestpy-1.1.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31d57793e53b2769795de93e123f175c09bf476ab9db53467851fb3ca024aa39 |
|
MD5 | 1e8309e237c1a54b0e060856b2a85bda |
|
BLAKE2b-256 | ec2d699cf967166a3fad359d3f54d057c4209b7ef078f9473ef46388318d008d |
Hashes for nestpy-1.1.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5dfa59dd109ea73aa9585f8abc96cc0d156e10748320ee97eaa4ef762cd34a3 |
|
MD5 | 23660b604bc07d07505676d631325fe2 |
|
BLAKE2b-256 | 3862738fba36388904f6a44632cc1ae3491be1f4ce676c6666db86c302ae8c2e |
Hashes for nestpy-1.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a685eb9d5feaded2a6a2730186c960e91fde591efc499a32ae80b51f8ab4cd9 |
|
MD5 | dc8c54fa5d8dadda5956d87f0a2d115c |
|
BLAKE2b-256 | 29534bf5cbeda4a6f3d8db2e0777f8e266806d477f3fb78ac311b5de0b72baa9 |
Hashes for nestpy-1.1.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 923a9a28d7ed406ca8d18a1c34b721619156c78b807ac3ff383e37431f3d6223 |
|
MD5 | 96489ae290264b8154e97937c6cd9a5d |
|
BLAKE2b-256 | 411004979bfe3d8d7504ba1a4f832d1f35b70f9c0a7b07d8baacaa25a89cb4c8 |
Hashes for nestpy-1.1.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 231f0f83502238a7eee10899442faa29d3874e46c02e2e146e740a1c05d790ce |
|
MD5 | 6b89390ecbba169f44822c959ded4957 |
|
BLAKE2b-256 | 372626acde0aa9c82cf22fa20f54af6110c2c7e2f43338b265267566e1d170b2 |
Hashes for nestpy-1.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a780782d4afd28a6406401cc250eab43a84191db40bd2aa9a3e0992990f0884c |
|
MD5 | 328ed8f74b07d13b69df91e99f410ac4 |
|
BLAKE2b-256 | 3d0f1cac473fcc4f3b8b03ffb3007f47fdf02ed77dbbc38af68a1716d2fbb317 |
Hashes for nestpy-1.1.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290b31588ce3453b9e46ce1e8a1d99b8d0ad02b58147c2378520dda97a07cb2b |
|
MD5 | 48226969bd4b9c0ca7bfa1e8c8e1b5fc |
|
BLAKE2b-256 | 25b1049b0af4f4d32fcf71d82418467e6a3f864a0593be0e2b0ad3176a2c6759 |
Hashes for nestpy-1.1.0-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49e08e7c6643eb5872ef6f0c3e0c1ef53d4bfc4a971cd6f0223f84b0a13150bb |
|
MD5 | 91f18f6568f44b65f40c3c17d00903e9 |
|
BLAKE2b-256 | ccf4df4b98e44fb8155a10057a3e52e7fba78f03f4c6cff1a82edb415be705c8 |
Hashes for nestpy-1.1.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edea304ef3da83e76be2612f72e3d27794f461b56cb75418612b91fb95127602 |
|
MD5 | c47ebc96af496adfce4cf6ce04049187 |
|
BLAKE2b-256 | f57052be52da72186633f868bdf73c1703473096f4552d70c25e2b62d5c4b032 |
Hashes for nestpy-1.1.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fb5101ff7bcf2c9d0eecf813bc6ffc5184f0d1f150f61d07c0d4218b28d13fb |
|
MD5 | c178c7cb4802138d5d3b3948b0509d0b |
|
BLAKE2b-256 | e71797764eb7bcadfbef32237a2371b874f0997a0fbdd813ebb025afef9a83d6 |
Hashes for nestpy-1.1.0-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0765b5f5eab1e4fffea0e746f7f598089beb71ae33bef888500ee015bf93d18 |
|
MD5 | 50abee5dc65fa30795bcdb2978a63534 |
|
BLAKE2b-256 | 4dc82bb694f8ed8e7965ba9b8b9121713819e3ea2448789bbaec5201b4a22a11 |
Hashes for nestpy-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e1d951d5421d55ac00ac0121032c530601e0f2bef6f115bb87ddad10223a7d |
|
MD5 | 12a2e1741070c33652b61895474bed51 |
|
BLAKE2b-256 | 18bb47a6faf8f4cd5e4f40aec1e5abd5b6d06fffd3ff67617aae3943d5a53981 |
Hashes for nestpy-1.1.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04870e78e7e4eec2c8c7fc26bc5fedead57a39328e416c598a4fbd83eef97490 |
|
MD5 | 4276be7b072083f716e9d2cc612ac428 |
|
BLAKE2b-256 | d1a4056e1fe93143b7caa6efb291e35d6dade19241b6c51a354aa4c487d528e6 |
Hashes for nestpy-1.1.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765c70694f6fb02df499c1b46f027ed35a710490259fa9f21476a19487c550d9 |
|
MD5 | 6bdf5308663e75bdb061919320628846 |
|
BLAKE2b-256 | 4a5c74200973f0536538b8d9a1087d6cf5f95cab4a0383cbebbb8785772097e9 |
Hashes for nestpy-1.1.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8633d4073fe793109c6a40423aaa759565c401d25c536ac666da02359c76bedd |
|
MD5 | 074b635fe1034d3c27215b59dfb344b4 |
|
BLAKE2b-256 | 7e7aaeeedd605c854e66485fd11431fc62d2bc0e74d19767cbdbb6640008435f |
Hashes for nestpy-1.1.0-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a05cd5eb057c6b11200c90ad4ca2282f5ba4e2e5184ed1f87911ef99c32103 |
|
MD5 | 78ece5fab1a982d727fe618503b503c0 |
|
BLAKE2b-256 | c7fd38e577fd5d53c3e95d8e971b6e6b709fc9acc0fc828e724a90a5d11ab447 |