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_average1DWithinTolerance()[source]
test_average1DWithinToleranceInvalid()[source]
test_convertToSlice()[source]
test_efmt()[source]
test_expandRepeatedFloats()[source]
test_findClosest()[source]
test_findNearestValue()[source]
test_fixThreeDigitExp()[source]
test_getFloat()[source]
test_getStepsFromValues()[source]
test_isMonotonic()[source]
test_linearInterpolation()[source]
test_minimizeScalarFunc()[source]
test_newtonsMethod()[source]
test_parabola()[source]
test_parabolicInterpolation()[source]
test_relErr()[source]
test_resampleStepwiseAvg0()[source]

Test resampleStepwise() averaging when in and out bins match.

test_resampleStepwiseAvg1()[source]

Test resampleStepwise() averaging for one arbitrary case.

test_resampleStepwiseAvg2()[source]

Test resampleStepwise() averaging for another arbitrary case.

test_resampleStepwiseAvg3()[source]

Test resampleStepwise() averaging for another arbitrary case.

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

Test resampleStepwise() summing when in and out bins match.

test_resampleStepwiseSum1()[source]

Test resampleStepwise() summing for one arbitrary case.

test_resampleStepwiseSum2()[source]

Test resampleStepwise() summing for another arbitrary case.

test_resampleStepwiseSum3()[source]

Test resampleStepwise() summing for another arbitrary case.

test_resampleStepwiseSum4()[source]

Test resampleStepwise() summing for matching, but uneven intervals.

test_resampleStepwiseSum5()[source]

Test resampleStepwise() summing for almost matching 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_resampleStepwiseSumOneNone()[source]

Test resampleStepwise() summing when one inputs is 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.

test_resampleStepwiseAvgNpArrayAverage()[source]

Test resampleStepwise() summing when some of the values are arrays.

test_rotateXY()[source]