armi.matProps.tests.test_interpolationFunctions module

Program that runs all of the tests contained in the TestInterpolationFunctions class.

class armi.matProps.tests.test_interpolationFunctions.TestInterpolationFunctions(methodName='runTest')[source]

Bases: TestCase

Class which creates tests for the matProps InterpolationFunctions files.

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

Test which validates the values returned from the linear-linear interpolation method.

Uses numpy linspace function to generate values at which interpolation will be performed.

test_linearLinearInterpolation()[source]

Duplicate test validating that the correct values are returned from a linear-linear interpolation.

Differs from test_linearLinear by constructing interpolation points using standard lists instead of numpy linspace.

test_linearLinearExtrapolation()[source]

Check to make sure a ValueError is thrown if attempting an interpolation outside the function domain.

test_logLinear()[source]

Test that validates the values returned from the log-linear interpolation function.

test_logLinearExtrapolation()[source]

A ValueError should be thrown if performing a log-linear interpolation outside the function domain.