Skip to main content

logo

PyPI version

Eddy is a HTML output generator for MCNP and SCALE, it imports an MCNP or SCALE output file, extracts the important data, and writes it to a user-friendly HTML file.

This repository contains the source code version of Eddy, however Eddy is also available as a pre-compiled executable.

Source Code CLI Usage

Eddy can be run from the command line with the output file and any applicable scaling factor as optional arguments; if no such arguments are supplied a GUI will appear to request them.

General CLI usage:

python3 eddy.py [-o outputfile] [-sf scaling_factor]

PyPI Package Usage

Eddy is also available on the PyPI Python Package index as eddy-mc, in order to allow easier integration into other programs. It can be installed using pip:

pip install eddy-mc

and accessed using:

from eddymc import eddy
eddy.main()

where eddy.main() can take the same two optional arguments; the filepath for the MCNP output and a scaling factor. If these are not supplied, the GUI will appear to request them when eddy.main() is called.

Additionally, for Linux installs the wrapper script in bin/eddy will be placed in the /usr/local/bin directory, placing it into the user's PATH and allowing eddy to be called directly from any command line with the following command:

eddy outputfile [-h] [-sf SCALING_FACTOR] 

This method is intended for pure command-line use, so when eddy is called in this way, the filename argument is non-optional, and if no scaling factor is supplied a default of 1.0 will be assumed; this CLI interface will prevent the GUI window from appearing to request these values.

Features

Features include:

  • Eddy can convert F2, F4, F5, F6 and F6+ tallies
  • Eddy can accept average tallies, given in the form F4:N (4 5)
  • Eddy can take an MCNP criticality output and show k-effective for the first half, second half and total calculation.
  • Eddy will present a warning if an MCNP case was halted due to lost particles
  • Eddy will clearly present any FATAL ERROR messages in the MCNP output
  • Eddy currently does not accept multi-particle tallies of the form F4:N,P
  • For F2, F4 and F5 tallies, the units are presented as microSieverts per hour. The actual result from MCNP is typically multiplied by some conversion factor, so the tally output could be in any unit. The uSv/h units have been left in for now as this seems to be by far the most common conversion factor used for shielding calculations.
  • Any valid HTML tags found in the MCNP output file will be escaped, preventing any unwanted HTML or javascript injected into the MCNP output from making its way into the HTML output file.

Requirements

  • Python 3.6 or later
  • Jinja2 Python package is required (will be included automatically if Eddy is installed via pip)
  • importlib_resources may be required for versions of python < 3.9
  • pytest and pytest-mock Python packages are required to run the unit tests
Example HTML outputs

Metadata

Release files for eddy-mc 0.3.6

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

Source distribution (sdist)

Source distribution for eddy-mc 0.3.6
File Size Uploaded Provenance Actions
eddy_mc-0.3.6.tar.gz 42.6 kB Without provenance Details for eddy_mc-0.3.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eddy-mc 0.3.6
File Interpreter ABI Platform Actions
eddy_mc-0.3.6-py3-none-any.whl Python 3 none any Details for eddy_mc-0.3.6-py3-none-any.whl

Total release size: 91.5 kB

Release files / eddy_mc-0.3.6.tar.gz

Download URL eddy_mc-0.3.6.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3a0aa465b0cdfbf485780dceceab3a790b770a9eb5568550226665ae1be4f078
BLAKE2b-256 checksum
How to use checksums
71bf831bf73352ad8b8f1feefd21c06ec7be70f4d70c2596b67cba795cff4d2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

Release files / eddy_mc-0.3.6-py3-none-any.whl

Download URL eddy_mc-0.3.6-py3-none-any.whl
Size 48.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e63f5c071d54eed2e45597d98a84fdec3c74d7ce537bc8aeb6c08fc5e92a724e
BLAKE2b-256 checksum
How to use checksums
1610da1778c187693492ed7e34a9b3a79116836b0d6c428a5c490a00fb01ce84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

Security for eddy-mc 0.3.6

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.

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