mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
geometry: Profile: Fix table station display.
This commit is contained in:
1 parent
c59c924f58
commit
c6fd041e0c
5 files changed
+77
-32
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from math import dist
|
||||
from pandas import isna
|
||||
import numpy as np
|
||||
|
||||
from Model.Geometry.Point import Point
|
||||
|
||||
@@ -46,9 +46,9 @@ class PointXYZ(Point):
|
||||
Returns:
|
||||
True if at least one coordinate is as np.nan
|
||||
"""
|
||||
return (isna(self.x) or
|
||||
isna(self.y) or
|
||||
isna(self.z))
|
||||
return (np.isnan(self.x) or
|
||||
np.isnan(self.y) or
|
||||
np.isnan(self.z))
|
||||
|
||||
def dist(self, p2):
|
||||
return PointXYZ.distance(self, p2)
|
||||
|
||||
Reference in new issue
Block a user