3 from .utils
import findExampleDataFile
7 """This function is to add shims for the long-gone Point2 and Point3 types""" 13 def Point2(x=np.nan, y=np.nan):
14 """Shim for the deleted Point2 type.""" 16 assert x.shape == (2,),
"Point2 takes 2-vector" 18 return np.array([x, y], dtype=float)
22 def Point3(x=np.nan, y=np.nan, z=np.nan):
23 """Shim for the deleted Point3 type.""" 25 assert x.shape == (3,),
"Point3 takes 3-vector" 27 return np.array([x, y, z], dtype=float)
30 if __name__ ==
"__main__":
bool isinstance(handle obj)