mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Results: Add bedload sediment results to KPC plot.
This commit is contained in:
1 parent
1c736df647
commit
25dce4d386
3 files changed
+173
-69
No files matched your search
@@ -59,6 +59,8 @@ class Profile(object):
|
||||
def get_ts_key(self, timestamp, key):
|
||||
return self._data[timestamp][key]
|
||||
|
||||
def has_sediment(self):
|
||||
return any(map(lambda ts: "sl" in self._data[ts], self._data))
|
||||
|
||||
class Reach(object):
|
||||
def __init__(self, reach, study):
|
||||
@@ -92,6 +94,8 @@ class Reach(object):
|
||||
def set(self, profile_id, timestamp, key, data):
|
||||
self._profiles[profile_id].set(timestamp, key, data)
|
||||
|
||||
def has_sediment(self):
|
||||
return any(map(lambda profile: profile.has_sediment(), self._profiles))
|
||||
|
||||
class River(object):
|
||||
def __init__(self, study):
|
||||
|
||||
Reference in new issue
Block a user