def test_identical_inv_scalar(): x = -10 rf = functions.Identical() assert rf.inv(x) == x
def test_identical_inv_scalar(): x = -10 rf = functions.Identical() assert rf.physical_to_int(x) == x
def test_identical_inv(): xs = np.arange(-10, 11) rf = functions.Identical() assert np.array_equal(rf.inv(xs), xs)
def test_identical(): xs = np.arange(-10, 11) rf = functions.Identical() assert np.array_equal(rf.int_to_physical(xs), xs) assert np.array_equal(rf.physical_to_int(xs), xs)