Results: Add bedload sediment results to KPC plot.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-19 15:38:06 +01:00
1 parent 1c736df647
commit 25dce4d386
3 files changed
+173 -69

No files matched your search

+4
View File
@@ -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):