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_LumpNucBaseGetNatIsotopDoesNotFail()[source]
test_NaturalNuclideBase_getNatrualIsotpics()[source]
test_nucBases_singleFailsWithMultipleMatches()[source]
test_nucBases_singleFailsWithNoMatches()[source]
test_nucBases_singleIsPrettySpecific()[source]
test_natNucStomicWgtIsAvgOfNatIsotopes()[source]
test_nucBasesLabelAndNameCollsAreForSameNuc()[source]

The name and labels for correct for nuclides.

Test Case: Validate the name, label, and DB name are accessible for nuclides. T_ARMI_ND_ISOTOPES0
signature: test_nucBasesLabelAndNameCollsAreForSameNuc
requirements: R_ARMI_ND_ISOTOPES
test_nucBases_imposeBurnChainDecayBulkStats()[source]

Test must be updated manually when burn chain is modified.

test_nucBasesImposeBurnChainTransmBulkStats()[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 the nuclide data from file (specifically neutrons / sponaneous fission).

Test Case: Test that nuclide data was read from file instead of code. T_ARMI_ND_DATA0
signature: test_nucBases_imposeBurn_nuSF
requirements: R_ARMI_ND_DATA
test_nucBases_databaseNamesStartWith_n()[source]
test_nucBases_AllDatabaseNamesAreUnique()[source]
test_nucBases_Am242m()[source]

Test the correct am242g and am242m abbreviations are supported.

Test Case: Specifically test for Am242 and Am242g because it is a special case. T_ARMI_ND_ISOTOPES1
signature: test_nucBases_Am242m
requirements: R_ARMI_ND_ISOTOPES
test_nucBases_isHeavyMetal()[source]
test_getDecay()[source]
test_getEndfMatNum()[source]

Test get nuclides by name.

Test Case: Test get nuclides by name. T_ARMI_ND_ISOTOPES2
signature: test_getEndfMatNum
requirements: R_ARMI_ND_ISOTOPES
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 ENDF/B-V.2 nuclides in the data model.

Test Case: Test that MCC v2 ENDF/B-V.2 IDs can be queried by nuclides. T_ARMI_ND_ISOTOPES3
signature: test_loadMcc2Data
requirements: R_ARMI_ND_ISOTOPES
test_loadMcc3EndfVII0Data()[source]

Tests consistency with the mcc-nuclides.yaml input and the ENDF/B-VII.0 nuclides in the data model.

Test Case: Test that MCC v3 ENDF/B-VII.0 IDs can be queried by nuclides. T_ARMI_ND_ISOTOPES4
signature: test_loadMcc3EndfVII0Data
requirements: R_ARMI_ND_ISOTOPES
Test Case: Test the MCC ENDF/B-VII.0 nuclide data that was read from file instead of code. T_ARMI_ND_DATA1
signature: test_loadMcc3EndfVII0Data
requirements: R_ARMI_ND_DATA
test_loadMcc3EndfVII1Data()[source]

Tests consistency with the mcc-nuclides.yaml input and the ENDF/B-VII.1 nuclides in the data model.

Test Case: Test that MCC v3 ENDF/B-VII.1 IDs can be queried by nuclides. T_ARMI_ND_ISOTOPES6
signature: test_loadMcc3EndfVII1Data
requirements: R_ARMI_ND_ISOTOPES
Test Case: Test the MCC ENDF/B-VII.1 nuclide data that was read from file instead of code. T_ARMI_ND_DATA2
signature: test_loadMcc3EndfVII1Data
requirements: R_ARMI_ND_DATA
class armi.nucDirectory.tests.test_nuclideBases.TestAAAZZZSId(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]

Test that AAAZZS ID name generator.

Test Case: Query the AAAZZS IDs can be retrieved for nuclides. T_ARMI_ND_ISOTOPES5
signature: test_AAAZZZSNameGenerator
requirements: R_ARMI_ND_ISOTOPES