armi.utils.tests.test_mathematics module
Testing mathematics utilities.
- class armi.utils.tests.test_mathematics.TestMath(methodName='runTest')[source]
Bases:
TestCase
Tests for various math utilities.
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_resampleStepwiseAvg4()[source]
Test resampleStepwise() averaging for matching, but uneven intervals.
- test_resampleStepwiseAvg5()[source]
Test resampleStepwise() averaging for almost matching intervals.
- test_resampleStepwiseAvg6()[source]
Test resampleStepwise() averaging when the intervals don’t line up.
- test_resampleStepwiseAvg7()[source]
Test resampleStepwise() averaging when the intervals don’t line up.
- test_resampleStepwiseSum4()[source]
Test resampleStepwise() summing for matching, but uneven intervals.
- test_resampleStepwiseSum6()[source]
Test resampleStepwise() summing when the intervals don’t line up.
- test_resampleStepwiseSum7()[source]
Test resampleStepwise() summing when the intervals don’t line up.
- test_resampleStepwiseAvgAllNones()[source]
Test resampleStepwise() averaging when the inputs are all None.
- test_resampleStepwiseAvgOneNone()[source]
Test resampleStepwise() averaging when one input is None.
- test_resampleStepwiseSumAllNones()[source]
Test resampleStepwise() summing when the inputs are all None.
- test_resampleStepwiseAvgComplicatedNone()[source]
Test resampleStepwise() averaging with a None value, when the intervals don’t line up.
- test_resampleStepwiseAvgNpArray()[source]
Test resampleStepwise() averaging when some of the values are arrays.