Commit 550d8668 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

SL: Propagate profile SL to point and fix SL id cnt.

Showing with 8 additions and 0 deletions
+8 -0
......@@ -15,10 +15,16 @@ class Point(object):
@property
def sl(self):
if self._sl is None:
return self._profile.sl
return self._sl
@sl.setter
def sl(self, sl):
if sl == self._profile.sl:
self._sl = None
self._sl = sl
@property
......
......@@ -135,6 +135,8 @@ class SedimentLayer(SQLSubModel):
else:
self.id = id
SedimentLayer._id_cnt = max(id, SedimentLayer._id_cnt+1)
def __str__(self):
return f"{self.name} ({len(self)}) - {self.comment}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment