def do_gaussien_cylinder(exp, size, nsigma=None, width=None, center_offset=0, angle=None): res = imgutils.gaussian_cylinder(size, nsigma=nsigma, width=width, center_offset=center_offset, angle=angle) print (res * 1000).astype(np.int) print exp return np.equal(exp, (res * 1000).astype(np.int)).all()
def do_gaussien_cylinder(exp, size, nsigma=None, width=None, center_offset=0, angle=None): res = imgutils.gaussian_cylinder(size, nsigma=nsigma, width=width, center_offset=center_offset, angle=angle) print(res * 1000).astype(np.int) print exp return np.equal(exp, (res * 1000).astype(np.int)).all()
def test_gaussien_cylinder_no_arg(): try: imgutils.gaussian_cylinder(100) assert False except ValueError: pass