Geometry: Start OnPickEvent refactoring.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-05-07 14:12:53 +02:00
1 parent e066c6ab94
commit 5e79e29823
4 files changed
+187 -32

No files matched your search

+2 -2
View File
@@ -457,12 +457,12 @@ class ProfileXYZ(Profile, SQLSubModel):
station.append(station_i)
z_min = self.z_min()
index_profile_z_min = list(
index_profile_z_min = next(
filter(
lambda z: z[1] == z_min,
enumerate(self.z())
)
)[0]
)
constant = station[index_profile_z_min[0]]
return list(map(lambda s: s - constant, station))