def run_pf(path): """Function to pass to the process pool executor to process picket fence images.""" try: mypf = PicketFence(path) mypf.analyze() return 'Success' except: return 'Failure at {}'.format(path)
def test_lower_tolerance_fails(self): """This image has an introduced error; this should catch with a reasonable tolerance.""" pf = PicketFence(self.im_path) pf.analyze(tolerance=0.3, hdmlc=self.hdmlc) self.assertFalse(pf.passed)
def test_lower_tolerance_fails(self): """This image has an introduced error; this should catch with a reasonable tolerance.""" pf = PicketFence(self.file_path) pf.analyze(tolerance=0.3, hdmlc=self.hdmlc) self.assertFalse(pf.passed)