mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
adistTS NUM file
This commit is contained in:
1 parent
7681b5d326
commit
3be361b03c
4 files changed
+25
-21
No files matched your search
+12
-9
@@ -217,18 +217,21 @@ class AdisTSlc(AdisTS):
|
||||
|
||||
print(outputkp.reach, outputkp.kp, outputkp.title)
|
||||
|
||||
#edges = study.river.enable_edges()
|
||||
edges = study.river.enable_edges()
|
||||
print(edges)
|
||||
|
||||
#edges = [lambda x: x.id for x in study.river.enable_edges()]
|
||||
id_edges = list(map(lambda x: x.id, edges))
|
||||
|
||||
#id_reach = outputkp.reach
|
||||
#kp = filter(
|
||||
# lambda e: e._reach. == outputkp.kp,
|
||||
# enumerate(edges)
|
||||
#)
|
||||
id_reach = outputkp.reach
|
||||
kp = outputkp.kp
|
||||
title = outputkp.title
|
||||
|
||||
#if outputkp.reach not in edges:
|
||||
#return
|
||||
print(id_edges)
|
||||
|
||||
if id_reach not in id_edges:
|
||||
return
|
||||
|
||||
f.write(f"output = {id_reach} {kp} {title}\n")
|
||||
|
||||
def export_func_dict(self):
|
||||
return [
|
||||
|
||||
Reference in new issue
Block a user