PACE-neutrons
PACE is a suite of programs for data analysis of inelastic neutron scattering spectra, written in both Python and Matlab.
The packages included in PACE are:
- Horace - A Matlab program for the visualisation and analysis of large datasets from time-of-flight neutron inelastic scattering spectrometers.
- Euphonic - A Python program for simulating phonon spectra from DFT output (CASTEP or Phonopy).
- Brille - A C++/Python program for Brillouin zone interpolation.
- SpinW - A Matlab program for simulating spin wave (magnon) spectra.
The Python programs have separate PyPI packages (Euphonic and Brille), whilst this package provides a Python module for the Matlab codes using a compiled Matlab library, which does not require a Matlab license.
Getting Started
You can install and run the package using:
pip install pace_neutrons
pace_neutrons
When you first run pace_neutrons the module will check to see if you have the
Matlab Compiler Runtime (MCR) installed.
If you do not have the version required by PACE (currently R2020a)
then the program will prompt you to accept the Matlab license and
it will download and install the required MCR components
(approximately 500MB download, 2GB installed).
Note that the installation is silent and may take some time to download and install (~15-30min).
You can also manually install the MCR at the above link,
but note that the distributions linked there is for the full Matlab installation including all toolboxes,
which is approximately 2.5GB to download and 15GB installed.
After installing the MCR, the program will start a Python command line.
To use PACE you must first import and initialise the Matlab module as follows:
from pace_neutrons import Matlab
m = Matlab()
Thereafter, you can use the Matlab-based commands of Horace or SpinW by prefixing them with m., e.g.:
proj = m.projaxes([-0.5, 1, 0], [0, 0, 1], 'type', 'rrr')
w1 = m.cut_sqw('ei30_10K.sqw', proj, [0.1, 0.02, 0.5], [1.5, 2.5], [0.4, 0.5], [3, 0.5, 20])
hf = m.plot(w1)
You can get further help from the Horace or SpinW webpages.
Finally if you have Jupyter or Spyder installed you can start a PACE session in either with:
pace_neutrons --jupyter
or
pace_neutrons --spyder
Developer notes
Developer documentation is here
Metadata
Release files for pace-neutrons 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pace_neutrons-0.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pace_neutrons-0.4.0-py2.py3-none-any.whl |
Release files / pace_neutrons-0.4.0-py2.py3-none-any.whl
| Download URL | pace_neutrons-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 95.9 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1ef8210613f3a136c500d98c7167be17b5ab36de07dbd3025ed506ac24a5002d
|
|
BLAKE2b-256 checksum How to use checksums |
1fabab32a05f37277ba8b40feb2cd95616bb837d7c3d0959fa4ee37be2b2cd9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Security for pace-neutrons 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.