armi.nuclearDataIO.tests.test_xsCollections module
Module that tests methods within xsCollections.
- class armi.nuclearDataIO.tests.test_xsCollections.TestXsCollections(methodName='runTest')[source]
Bases:
TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_generateTotalScatteringMatrix()[source]
Generates the total scattering matrix by summing elastic, inelastic, and n2n scattering matrices.
- test_generateTotalScatteringMatrixWithMissingData()[source]
Generates the total scattering matrix by summing elastic and n2n scattering matrices.
Notes
This tests that the total scattering matrix can be produced when the inelastic scattering matrix is not defined.
- test_plotNucXs()[source]
Testing this plotting method here because we need a XS library to run the test.
- class armi.nuclearDataIO.tests.test_xsCollections.MockBlock(name=None, cs=None)[source]
Bases:
HexBlock
- property r
- getNuclideNumberDensities(nucNames)[source]
Return a list of number densities in atoms/barn-cm for the nuc names requested.
- paramCollectionType
alias of
BlockParameterCollection