ukaea / neutronics_material_maker

A tool for making parametric material cards for use in neutronics codes. Original developed for the Paramak
19 stars 10 forks source link

Adding natural isotopes dict #126

Closed shimwell closed 3 years ago

shimwell commented 3 years ago

Currently when an enriched material is made openmc is required as the openmc.data.NATURAL_ABUNDANCE variable is used.

This PR brings that variable into the package so that enriched materials can be made with one less dependency.

Hope to revert this when a pip install for openmc happens but currently there are a few users who struggle to install openmc and would like to be able to make the enriched materials.

Also brings in the ATOMIC_SYMBOL dict which is used in zaid_to_isotope conversion.

Fixes issue #105

codecov[bot] commented 3 years ago

Codecov Report

Merging #126 (170d64f) into develop (aab8914) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #126      +/-   ##
===========================================
+ Coverage    95.46%   95.48%   +0.01%     
===========================================
  Files            4        4              
  Lines          706      709       +3     
===========================================
+ Hits           674      677       +3     
  Misses          32       32              
Impacted Files Coverage Δ
neutronics_material_maker/__init__.py 100.00% <100.00%> (ø)
neutronics_material_maker/material.py 95.33% <100.00%> (ø)
neutronics_material_maker/utils.py 96.03% <100.00%> (+0.06%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update aab8914...170d64f. Read the comment docs.