示例#1
0
 def test_lackofprecision(self):
     with pytest.raises(ValueError):
         util.scale_to_coprime(np.array([1/333.333,1,1]))
示例#2
0
 def test_scale2coprime(self,input,output):
     assert np.allclose(util.scale_to_coprime(np.array(input)),
                                              np.array(output).astype(int))