This commit is contained in:
Theophile Terraz committed 2024-09-02 11:58:11 +02:00
1 parent 5204b2cef2
commit 06e621399b
3 files changed
+3 -7

No files matched your search

+2 -2
View File
@@ -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)