Пример #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))
Пример #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))
Пример #3
0
 def test_subrgion(self):
     sub = statistics.subregion(numpy.ones((800, 800)))
     self.assertEqual(sub.shape, (400, 400))
Пример #4
0
 def test_subrgion(self):
     sub = statistics.subregion(numpy.ones((800, 800)))
     self.assertEqual(sub.shape, (400, 400))