Exemplo n.º 1
0
 def test_rmsclippedsubregion(self):
     o = numpy.ones((800, 800))
     sub = statistics.subregion(o)
     clip = statistics.clip(sub)
     rms = statistics.rms(clip)
     self.assertEqual(rms, statistics.rms_with_clipped_subregion(o))
Exemplo n.º 2
0
 def test_rmsclippedsubregion(self):
     o = numpy.ones((800, 800))
     sub = statistics.subregion(o)
     clip = statistics.clip(sub)
     rms = statistics.rms(clip)
     self.assertEqual(rms, statistics.rms_with_clipped_subregion(o))
Exemplo n.º 3
0
 def test_subrgion(self):
     sub = statistics.subregion(numpy.ones((800, 800)))
     self.assertEqual(sub.shape, (400, 400))
Exemplo n.º 4
0
 def test_subrgion(self):
     sub = statistics.subregion(numpy.ones((800, 800)))
     self.assertEqual(sub.shape, (400, 400))