예제 #1
0
 def test_value_states(self):
     digitizer = Digitizer( [0.0, 2.0] )
     value = digitizer.value( digitizer.states - 1 )
     npt.assert_array_almost_equal(value, 2.0, 2)
예제 #2
0
 def test_value_2(self):
     digitizer = Digitizer( [0.0, 2.0] )
     value = digitizer.value(2)
     npt.assert_array_almost_equal(value, 2.0, 2)