Skip to main content

MCNP Input Reader

The package for reading mcnp input in a pythonic way

PyPI - Python Version License

MCNP Input Reader is a python package developed in ENEA to help the modifications and the check integrity of large mcnp input files.

Install

pip install mcnp-input-reader

Usage

import mcnp_input_reader as mir

mcnp_input = mir.read_file('input.i') 
mcnp_input.cells # return the table of cells
mcnp_input.cells.filter(lambda cell: cell.material_id == 2) # return the cells using material M2

TODO

A lot of things...

Example

Example taken from here

Release files for mcnp-input-reader 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcnp-input-reader 0.2.1
File Size Uploaded
mcnp_input_reader-0.2.1.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcnp-input-reader 0.2.1
File Interpreter ABI Platform
mcnp_input_reader-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 33.5 kB

Release files / mcnp_input_reader-0.2.1.tar.gz

Download URL mcnp_input_reader-0.2.1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dd58453de899c66893a9cd3138f24851964cebb41209b4fcf4fda3d9c2a5ed62
BLAKE2b-256 checksum
How to use checksums
02870d4b34c1f699f7ecbc399d50445ad096cd83e137f77c5d2dbeeacdc0ae48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.5 Linux/5.15.0-1014-azure

Release files / mcnp_input_reader-0.2.1-py3-none-any.whl

Download URL mcnp_input_reader-0.2.1-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44e6a14398411fe37d0d55a3de50471ba9f46031e680aa7f54f1870a560e6dc3
BLAKE2b-256 checksum
How to use checksums
37ee506f418bf6324314cef60b1a052c5ad36a9174ec068cccc572272b71ab37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.5 Linux/5.15.0-1014-azure

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page