Commit 7681b5d3 authored by Youcef Aouad's avatar Youcef Aouad
Browse files

adists export

No related merge requests found
Pipeline #55649 passed with stages
in 58 seconds
Showing with 24 additions and 0 deletions
+24 -0
...@@ -204,8 +204,32 @@ class AdisTSlc(AdisTS): ...@@ -204,8 +204,32 @@ class AdisTSlc(AdisTS):
f.write(f"{name} {value}\n") f.write(f"{name} {value}\n")
outputkps = study.river.Output_kp_adists.OutputKp_List
for outputkp in outputkps:
self._export_outputkp(study, outputkp, f, qlog)
return files return files
def _export_outputkp(self, study, outputkp, f, qlog, name="0"):
if (outputkp.reach is None) or (outputkp.kp is None) or (outputkp.title is None):
return
print(outputkp.reach, outputkp.kp, outputkp.title)
#edges = study.river.enable_edges()
#edges = [lambda x: x.id for x in study.river.enable_edges()]
#id_reach = outputkp.reach
#kp = filter(
# lambda e: e._reach. == outputkp.kp,
# enumerate(edges)
#)
#if outputkp.reach not in edges:
#return
def export_func_dict(self): def export_func_dict(self):
return [ return [
self._export_NUM, self._export_NUM,
......
No preview for this file type
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