armi.nuclearDataIO.cccc.tests.test_compxs module

Test the COMPXS reader/writer with a simple problem.

class armi.nuclearDataIO.cccc.tests.test_compxs.TestCompxs(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test the compxs reader/writer

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.

property binaryWritePath
property asciiWritePath
test_libraryData()[source]

Test library data including energy group information and number of compositions.

test_regionPrimaryXS()[source]

Test the primary cross sections for the second region - fissile

test_totalScatterMatrix()[source]

Test the total scattering matrix by comparing the sparse components.

Sparse matrices can be constructed from three vectors: data, indices, and indptr. For column matrix, the row indices for column j are stored in indices[indptr[j]:indptr[j + 1]] and the corresponsing data is stored in data[indptr[j]:indptr[j + 1]].

See also

scipy.sparse.csc_matrix

test_binaryRW()[source]

Test to make sure the binary read/writer reads/writes the exact same library.

test_asciiRW()[source]

Test to make sure the ascii reader/writer reads/writes the exact same library.

test_mergeCompxsLibraries()[source]

Test to verify the compxs merging returns a library with new regions.

test_getCOMPXSFileName()[source]