Apply suggestions from code review

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Jonathan Shimwell 2020-03-25 14:58:02 +00:00 committed by GitHub
parent ffa0cfc03e
commit 4234fe45e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -607,9 +607,9 @@ class Material(IDManagerMixin):
If enrichment_target is not supplied then it is enrichment for U235
in weight percent. For example, input 4.95 for 4.95 weight percent
enriched U. Default is None (natural composition).
enrichment_target: str, optional
enrichment_target : str, optional
Single nuclide name to enrich from a natural composition (e.g., 'O16')
enrichment_type: {'ao', 'wo'}, optional
enrichment_type : {'ao', 'wo'}, optional
'ao' for enrichment as atom percent and 'wo' for weight percent.
Default is: 'ao' for two-isotope enrichment; 'wo' for U enrichment

View file

@ -58,7 +58,8 @@ def test_elements_by_name():
assert a._nuclides == b._nuclides
assert b._nuclides == c._nuclides
def test_adding_elements_by_formula():
def test_add_elements_by_formula():
"""Test adding elements from a formula"""
# testing the correct nuclides and elements are added to a material
m = openmc.Material()
@ -354,4 +355,3 @@ def test_mix_materials():
assert m3.density == pytest.approx(dens3)
assert m4.density == pytest.approx(dens4)
assert m5.density == pytest.approx(dens5)