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-Wrapper. It is a wrapper program for Eddy-Core, which contains the core functionality of the Eddy Project. Eddy-Core is designed to work with a display-less remote server and as such cannot handle parts of Eddy's User Interface, which have been extracted to this package; when Eddy-Wrapper is run, it will call Eddy-Core to do the back-end work.

Eddy is also available as a pre-compiled executable.

PyPI Package Usage

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

pip install eddy-mc-wrapper

and accessed using:

from eddymc_wrapper import eddy_wrapper
eddy_wrapper.main()

where eddy_wrapper.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.

Alternatively, Eddy-Wrapper 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. It should be noted that if Eddy-Wrapper has been downloaded directly (such as from GitHub) rather than via PIP, eddy-core will also have to be installed.

General CLI usage:

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

However, users wishing to incorporate Eddy into their own software projects may find it easier just to use Eddy-Core; information on how to include this module can be found in the Eddy-Core repository.

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-wrapper 0.1.0

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-wrapper 0.1.0
File Size Uploaded Provenance Actions
eddy-mc-wrapper-0.1.0.tar.gz 15.4 kB Without provenance Details for eddy-mc-wrapper-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.6 kB

Release files / eddy-mc-wrapper-0.1.0.tar.gz

Download URL eddy-mc-wrapper-0.1.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
79fc7637b2ae5465cb9815e89baf239b1df51db28fc9dde171ed0a6ad68f2569
BLAKE2b-256 checksum
How to use checksums
f880b245cc3910e2fa6672e8aa547d9972f427bbad483c58fa642b56dd3518fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / eddy_mc_wrapper-0.1.0-py3-none-any.whl

Download URL eddy_mc_wrapper-0.1.0-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c37960db8856c24ae25cebda92b5415f45abfdf9c3dc1263b50dad5738f76fa
BLAKE2b-256 checksum
How to use checksums
6d13a1c5fb6806086d149f98861ed928dfab1aaa73704c4b7e9591faddb71476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Security for eddy-mc-wrapper 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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