Beispiel #1
0
def test_identical_inv_scalar():
    x = -10
    rf = functions.Identical()
    assert rf.inv(x) == x
Beispiel #2
0
def test_identical_inv_scalar():
    x = -10
    rf = functions.Identical()
    assert rf.physical_to_int(x) == x
Beispiel #3
0
def test_identical_inv():
    xs = np.arange(-10, 11)
    rf = functions.Identical()
    assert np.array_equal(rf.inv(xs), xs)
Beispiel #4
0
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)