mirror of https://gitlab.com/pamhyr/pamhyr2
adists export
parent
0a35d387f7
commit
7681b5d326
|
|
@ -204,8 +204,32 @@ class AdisTSlc(AdisTS):
|
|||
|
||||
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
|
||||
|
||||
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):
|
||||
return [
|
||||
self._export_NUM,
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue