def test_ARY007(self): aa = ArrayAnalyse('ARY007') aa.strict = False aa.load_image(self.cases / 'ARY007.tif') aa.finalize_collection() self.assertAlmostEqual(0.5117877836372805, aa.evaluate('A1', just_value=True, norm='raw')[0][0], delta=1E-13) self.assertAlmostEqual(0.06156276344709296, aa.evaluate('E13', just_value=True, norm='raw')[0][0], delta=1E-13)
def test_ARY015(self): aa = ArrayAnalyse('ARY015') aa.strict = False aa.load_image(self.cases / 'ARY015.tif') aa.finalize_collection() self.assertAlmostEqual(0.2759596293934661, aa.evaluate('A1', just_value=True, norm='raw')[0][0], delta=1E-13) self.assertAlmostEqual(0.18749890601518324, aa.evaluate('E13', just_value=True, norm='raw')[0][0], delta=1E-13)
def test_ARY028(self): aa = ArrayAnalyse('ARY028') aa.strict = False aa.load_image(self.cases / 'ARY028.tif') aa.finalize_collection() self.assertAlmostEqual(0.5281856065937371, aa.evaluate('A1', just_value=True, norm='raw')[0][0], delta=1E-13) self.assertAlmostEqual(0.05475981244045449, aa.evaluate('E13', just_value=True, norm='raw')[0][0], delta=1E-13)