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))
def test_subrgion(self): sub = statistics.subregion(numpy.ones((800, 800))) self.assertEqual(sub.shape, (400, 400))