mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
debug
This commit is contained in:
1 parent
5204b2cef2
commit
06e621399b
3 files changed
+3
-7
No files matched your search
@@ -651,8 +651,8 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
Returns:
|
||||
Projection of the points of the profile on a plane.
|
||||
"""
|
||||
if self.nb_points < 3:
|
||||
return None
|
||||
if self.nb_points < 2:
|
||||
return [0.0]
|
||||
else:
|
||||
return self._get_station(self.points)
|
||||
|
||||
|
||||
Reference in new issue
Block a user