Metadata-Version: 2.1
Name: mcnp-input-reader
Version: 0.1.8
Summary: MCNP Input reader
Home-page: https://github.com/ENEA-Fusion-Neutronics/MCNP-Input-Reader.git
Author: gmariano
Author-email: giovanni.mariano@enea.it
Requires-Python: >=3.6.1,<4.0.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Project-URL: Repository, https://github.com/ENEA-Fusion-Neutronics/MCNP-Input-Reader.git
Description-Content-Type: text/markdown

# MCNP Input Reader
> The package for reading mcnp input in a pythonic way

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mcnp-input-reader)](https://pypi.org/project/mcnp-input-reader/)
[![License](https://img.shields.io/pypi/l/mcnp-input-reader.svg)](https://github.com/ENEA-Fusion-Neutronics/MCNP-Input-Reader/blob/main/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

```shell
pip install mcnp-input-reader
```

## Usage

```python
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.mat_id == 2) # return the cells using material M2
```
## TODO

A lot of things...

## Example

Example taken from [here](https://www.utoledo.edu/med/depts/radther/pdf/MCNP5%20practical%20examples%20lecture%207%20companion.pdf) 


