armi.bookkeeping.tests.test_historyTracker module

Tests for the history tracker interface.

These tests actually run a jupyter notebook that’s in the documentation to build a valid HDF5 file to load from as a test fixtures. Thus they take a little longer than usual.

armi.bookkeeping.tests.test_historyTracker.runTutorialNotebook()[source]
class armi.bookkeeping.tests.test_historyTracker.TestHistoryTracker(methodName='runTest')[source]

Bases: ArmiTestHelper

History tracker tests that require a Reactor Model.

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_calcMGFluence()[source]

This test confirms that mg flux has many groups when loaded with the history tracker.

armi.bookeeping.db.hdf.hdfDB.readBlocksHistory requires historical_values[historical_indices] to be cast as a list to read more than the first energy group. This test shows that this behavior is preserved.

test_historyParameters()[source]

Retrieve various paramaters from the history.

test_historyReport()[source]

Test generation of history report.

This does a swap for 5 timesteps: | TS 0 1 2 3 4 |LOC (1,1) (2,1) (3,1) (4,1) SFP

test_getBlockInAssembly()[source]
class armi.bookkeeping.tests.test_historyTracker.TestHistoryTrackerNoModel(methodName='runTest')[source]

Bases: TestCase

History tracker tests that do not require a Reactor Model.

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_timestepFiltering()[source]
test_timestepFilteringWithGap()[source]
test_blockName()[source]