Python-based MCNP tools.
Project description
PyMCNP
PyMCNP supports running Monte Carlo N-Particle (MCNP) simulations. It parses MCNP files, enabling automation such as parameter scans, creates MCNP geometry visualization using pyvista. PyMCNP provides a Python API for MCNP input and output files and a command line interface for interacting with MCNP and MCNP files.
Find more information on ReadTheDocs.
Installation
PyMCNP is available on PyPI and can be "pip installed":
pip install pymcnp
Contributing
PyMCNP source code is accessable for contributions, suggestions, and bug reports on GitHub:
# Installing
git clone https://github.com/FSIBT/PyMCNP
cd PyMCNP
pip install -e .
# Running
pymcnp
To contribute, use pre-commit and ruff:
# Installing
pip install pre-commit ruff
cd PyMCNP
pre-commit install
# Running
pre-commit
Testing
To run the PyMCNP test suite, after cloning the PyMCNP GitHub repository, use the following commands to install pytest with pytest-cov inside the PyMCNP directory:
# Installing
pip install pytest-cov
cd PyMCNP
python -m pytest
# Running
pytest --cov --cov-report term-missing:skip-covered
Documenting
To rebuild the documentation using Sphinx and Napolean:
# Installing
pip install sphinx
# Running
cd docs
make html
Copyright and License
For copyright and license information, see the COPYRIGHT and LICENSE files in the top level directory.
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymcnp-0.9.0.tar.gz.
File metadata
- Download URL: pymcnp-0.9.0.tar.gz
- Upload date:
- Size: 5.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1f45e6ca43564291c44b67fb2d18d60ab6868609af14d832a1c1645f9dee2cc
|
|
| MD5 |
6c9f703f2b242d34a5877e205f7f4533
|
|
| BLAKE2b-256 |
ecf3d700ec03c9dc3600c2f62e437e8bc5be2e27d801becb720c078d690e5afc
|
Provenance
The following attestation bundles were made for pymcnp-0.9.0.tar.gz:
Publisher:
make-release.yml on FSIBT/PyMCNP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcnp-0.9.0.tar.gz -
Subject digest:
c1f45e6ca43564291c44b67fb2d18d60ab6868609af14d832a1c1645f9dee2cc - Sigstore transparency entry: 735515146
- Sigstore integration time:
-
Permalink:
FSIBT/PyMCNP@b2d940b53845f9f869ba1d51d86d22f1a7f70d43 -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/FSIBT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
make-release.yml@b2d940b53845f9f869ba1d51d86d22f1a7f70d43 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcnp-0.9.0-py3-none-any.whl.
File metadata
- Download URL: pymcnp-0.9.0-py3-none-any.whl
- Upload date:
- Size: 754.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a43a201c1a48e52470eecefb8963df8a6b07bad89dbcecdf15df7a0a2bddb1a
|
|
| MD5 |
409bb69746a4f437d609e82fd8b96a42
|
|
| BLAKE2b-256 |
cac898bbbe65e988ceda2095bbb24ea1fff88873ae6848947f9b6b4468c6bf2e
|
Provenance
The following attestation bundles were made for pymcnp-0.9.0-py3-none-any.whl:
Publisher:
make-release.yml on FSIBT/PyMCNP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcnp-0.9.0-py3-none-any.whl -
Subject digest:
2a43a201c1a48e52470eecefb8963df8a6b07bad89dbcecdf15df7a0a2bddb1a - Sigstore transparency entry: 735515148
- Sigstore integration time:
-
Permalink:
FSIBT/PyMCNP@b2d940b53845f9f869ba1d51d86d22f1a7f70d43 -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/FSIBT
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
make-release.yml@b2d940b53845f9f869ba1d51d86d22f1a7f70d43 -
Trigger Event:
push
-
Statement type: