geometry: Clean up some code and continue refactoring of geometry view.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-04-11 17:33:56 +02:00
1 parent fa9d95c7e7
commit 0d08ca3889
7 files changed
+217 -721

No files matched your search

+2 -2
View File
@@ -47,7 +47,7 @@ class PointXYZ(Point):
Returns:
True if at least one coordinate is as np.nan
"""
return pd_is_na(self.x()) or pd_is_na(self.y()) or pd_is_na(self.z())
return pd_is_na(self.x) or pd_is_na(self.y) or pd_is_na(self.z)
@staticmethod
def distance(p1, p2):
@@ -60,4 +60,4 @@ class PointXYZ(Point):
Returns:
Euclidean distance between the two points
"""
return dist((p1.x(), p1.y(), p1.z()), (p2.x(), p2.y(), p2.z()))
return dist((p1.x, p1.y, p1.z), (p2.x, p2.y, p2.z))