mirror of https://gitlab.com/pamhyr/pamhyr2
debug
parent
ad59afc4f5
commit
b56172328e
|
|
@ -195,7 +195,7 @@ class MeshingWithMage(AMeshingTool):
|
||||||
|
|
||||||
gl = reach.compute_guidelines()
|
gl = reach.compute_guidelines()
|
||||||
|
|
||||||
# we make sure that the lines are in the left-ti-right order
|
# we make sure that the lines are in the left-to-right order
|
||||||
guide_list = [
|
guide_list = [
|
||||||
x.name
|
x.name
|
||||||
for x in reach.profiles[0].named_points()
|
for x in reach.profiles[0].named_points()
|
||||||
|
|
|
||||||
|
|
@ -302,10 +302,16 @@ class Reach(SQLSubModel):
|
||||||
return [profile.kp for profile in self.profiles]
|
return [profile.kp for profile in self.profiles]
|
||||||
|
|
||||||
def get_kp_min(self):
|
def get_kp_min(self):
|
||||||
return min(self.get_kp())
|
if len(self.get_kp()) > 0:
|
||||||
|
return min(self.get_kp())
|
||||||
|
else:
|
||||||
|
return 0.0
|
||||||
|
|
||||||
def get_kp_max(self):
|
def get_kp_max(self):
|
||||||
return max(self.get_kp())
|
if len(self.get_kp()) > 0:
|
||||||
|
return max(self.get_kp())
|
||||||
|
else:
|
||||||
|
return 0.0
|
||||||
|
|
||||||
# Sediment Layers
|
# Sediment Layers
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue