Skip to content

Commit

Permalink
Merge branch 'main' into rm_old_db_refs
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Mar 11, 2024
2 parents 3e83945 + d788393 commit 6fdb943
Show file tree
Hide file tree
Showing 16 changed files with 342 additions and 511 deletions.
5 changes: 3 additions & 2 deletions armi/nucDirectory/elements.py
Expand Up @@ -98,6 +98,7 @@
.. exec::
from tabulate import tabulate
from armi.nucDirectory import elements
from dochelpers import createTable
attributes = ['z',
'name',
Expand All @@ -121,10 +122,10 @@ def getAttributes(element):
]
sortedElements = sorted(elements.byZ.values())
return create_table(tabulate(tabular_data=[getAttributes(elem) for elem in sortedElements],
return createTable(tabulate(tabular_data=[getAttributes(elem) for elem in sortedElements],
headers=attributes,
tablefmt='rst'),
caption='List of elements')
caption='List of elements')
"""

import os
Expand Down
9 changes: 5 additions & 4 deletions armi/nucDirectory/nuclideBases.py
Expand Up @@ -99,6 +99,7 @@ class which is used to organize and store metadata about each nuclide. The
import numpy
from tabulate import tabulate
from armi.nucDirectory import nuclideBases
from dochelpers import createTable
attributes = ['name',
'type',
Expand Down Expand Up @@ -126,10 +127,10 @@ def getAttributes(nuc):
]
sortedNucs = sorted(nuclideBases.instances)
return create_table(tabulate(tabular_data=[getAttributes(nuc) for nuc in sortedNucs],
headers=attributes,
tablefmt='rst'),
caption='List of nuclides')
return createTable(tabulate(tabular_data=[getAttributes(nuc) for nuc in sortedNucs],
headers=attributes,
tablefmt='rst'),
caption='List of nuclides')
"""

import os
Expand Down
1 change: 0 additions & 1 deletion armi/reactor/composites.py
Expand Up @@ -2675,7 +2675,6 @@ def getDominantMaterial(self, typeSpec: TypeSpec = None, exact=False):
Gets components that are made of a particular material
gatherMaterialsByVolume
Classifies all materials by volume
"""
return getDominantMaterial([self], typeSpec, exact)

Expand Down

0 comments on commit 6fdb943

Please sign in to comment.