Python bindings for the NEST noble element simulations
Project description
nestpy
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 clone 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(nestpy.VDetector())
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)
print('The photon yield is:', y.PhotonYield)
print('With statistical fluctuations',
nc.GetQuanta(y).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.4.0 (2020-11-19)
Minor changes all are to fix software bugs, no physics changes.
- MANIFEST.in include requirements
- Make sure to include all dependencies.
- Fix travis builds.
1.4.0beta (2020-11-14)
NESTv2.2.0beta
1.3.2 (2020-11-11)
NESTv2.1.2
- New free parameters registered
- Cases of void initialization in tests fixed
- Introduced files for debugging tests as we improve code
- Prepared for NEST v.2.2 which is imminent
- Solved half of GetS1 and GetS2 issues opened in #37
1.3.1 (2020-08-26)
NESTv2.1.1
1.3.0 (2020-07-06)
NESTv2.1.0
1.2.1 (2020-06-20)
NESTv2.1.0beta
1.1.4 (2020-06-20)
- Update pybind11 2.5.0
- Fix manylinux build
- Add Python 3.8 support
1.1.3 (2019-08-05)
Default arguments for GetYields and GetQuanta (see PR #25)
1.1.2 (2019-08-02)
NESTv2.0.1
- execNEST included in nestpy
- Extensive bug fixes and testing improvements
1.1.1 (2018-08-29)
NESTv2.0.0
- Fix source installation (See #16).
1.1.0 (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.4.0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e24c676026185a13d1d0ae2f6ad67a498fa0fa302c58f204ea20a4e594c5ba51 |
|
MD5 | 1f84fe9f1b5dface088c20e4cc18fda7 |
|
BLAKE2b-256 | 5ad18c38e332689ab5c5fbdc5028cad3bbe9924de5bdc37ede952c9712da0ff7 |
Hashes for nestpy-1.4.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ca1516f26fc70332dff4e8401fd97522c13de57da3861ccfec36b63c689327 |
|
MD5 | 1a8c37a15b368a0347191f6273360ecc |
|
BLAKE2b-256 | 4658198d15c682ce252ae4db5336e7578d08e6077b029055d542f5b6636f121d |
Hashes for nestpy-1.4.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3ce786d8442976449b773f23e665b37424d6119c246da02f4a39f69d7ca1a17 |
|
MD5 | 768ff82e370aab2aa9cee3d33df18d75 |
|
BLAKE2b-256 | 2d6f257b02672aebc83a3a0565899975138f2a3d5299e536f597e87cffcf2bbd |
Hashes for nestpy-1.4.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64325e1028b1ba134ce2c62f07ac9de8448027dc74ee94c224e61b13d29c77f4 |
|
MD5 | 407d9ce4641acafeadff943799b71ffa |
|
BLAKE2b-256 | 8bb10791c39880aee204bc7c6a31e0b376564582e45cc33b65189bfd3daec4fe |
Hashes for nestpy-1.4.0-cp27-cp27m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 701e698252d63c22a30c2c5e80633c8fb6fc2f06edab551ade9d3eea53df6164 |
|
MD5 | d0a4ce28cdfb750b732be56cf0c9ffd2 |
|
BLAKE2b-256 | e74978adefd5b251f8dab7cb4302e97aa0d32ce836281f86fccde71b1138e59a |