armi.nucDirectory.tests.test_nuclideBases module

Tests for nuclideBases.

class armi.nucDirectory.tests.test_nuclideBases.TestNuclide(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_nucBases_fromNameBadNameRaisesException()[source]
test_nucBase_AllAbundancesAddToOne()[source]
test_nucBases_AllLabelsAreUnique()[source]
test_nucBases_NegativeZRaisesException()[source]
test_nucBases_Z295RaisesException()[source]
test_nucBases_Mc2Elementals()[source]
test_LumpNuclideBase_getNatrualIsotopicsDoesNotFail()[source]
test_NaturalNuclideBase_getNatrualIsotpics()[source]
test_nucBases_singleFailsWithMultipleMatches()[source]
test_nucBases_singleFailsWithNoMatches()[source]
test_nucBases_singleIsPrettySpecific()[source]
test_NaturalNuclide_atomicWeightIsAverageOfNaturallyOccuringIsotopes()[source]
test_nucBases_labelAndNameCollsionsAreForSameNuclide()[source]
test_nucBases_imposeBurnChainDecayBulkStatistics()[source]

Test must be updated manually when burn chain is modified.

test_nucBases_imposeBurnChainTransmutationBulkStatistics()[source]

Make sure all branches are equal to 1 for every transmutation type.

Exception: We allow 3e-4 threshold to account for ternary fissions, which are usually < 2e-4 per fission.

test_nucBases_imposeBurn_nuSF()[source]
test_nucBases_databaseNamesStartWith_n()[source]
test_nucBases_AllDatabaseNamesAreUnique()[source]
test_nucBases_Am242m()[source]
test_nucBases_isHeavyMetal()[source]
test_getDecay()[source]
test_getEndfMatNum()[source]
test_NonMc2Nuclide()[source]

Make sure nuclides that aren’t in MC2 still get nuclide bases.

test_kryptonDecayConstants()[source]

Tests that the nuclides data contains the expected decay constants.

test_curieDefinitionWithRa226()[source]

Tests that the decay constant of Ra-226 is close to 1 Ci.

Notes

The original definition of 1 Ci was based on the half-life of Ra-226 for 1 gram. The latest evaluations show that 1 gram is defined as 0.988 Ci.

test_loadMcc2Data()[source]

Tests consistency with the mcc-nuclides.yaml input and the nuclides in the data model.

test_loadMcc3Data()[source]

Tests consistency with the mcc-nuclides.yaml input and the nuclides in the data model.

class armi.nucDirectory.tests.test_nuclideBases.test_getAAAZZZSId(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_AAAZZZSNameGenerator()[source]