mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Start OnPickEvent refactoring.
This commit is contained in:
1 parent
e066c6ab94
commit
5e79e29823
4 files changed
+187
-32
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user