Skip to main content

Python-based MCNP tools.

Project description

Documentation Status PyPI version pre-commit

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymcnp-0.9.0.tar.gz (5.2 MB view details)

Uploaded Source

Built Distribution

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

pymcnp-0.9.0-py3-none-any.whl (754.2 kB view details)

Uploaded Python 3

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

Hashes for pymcnp-0.9.0.tar.gz
Algorithm Hash digest
SHA256 c1f45e6ca43564291c44b67fb2d18d60ab6868609af14d832a1c1645f9dee2cc
MD5 6c9f703f2b242d34a5877e205f7f4533
BLAKE2b-256 ecf3d700ec03c9dc3600c2f62e437e8bc5be2e27d801becb720c078d690e5afc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymcnp-0.9.0.tar.gz:

Publisher: make-release.yml on FSIBT/PyMCNP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pymcnp-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a43a201c1a48e52470eecefb8963df8a6b07bad89dbcecdf15df7a0a2bddb1a
MD5 409bb69746a4f437d609e82fd8b96a42
BLAKE2b-256 cac898bbbe65e988ceda2095bbb24ea1fff88873ae6848947f9b6b4468c6bf2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymcnp-0.9.0-py3-none-any.whl:

Publisher: make-release.yml on FSIBT/PyMCNP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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