En raison du déménagement des baies serveurs, les services gitlab.irstea.fr et mattermost.irstea.fr seront interrompus le samedi 2 octobre 2021 au matin. Ils devraient revenir à la normale dans la journée.

Unverified Commit 968c2408 authored by Julien Veyssier's avatar Julien Veyssier
Browse files

allow standalone call of circleKill.py


Signed-off-by: default avatarJulien Veyssier <eneiluj@posteo.net>
parent a775a323
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
try:
import dbf
DBF=True
......@@ -95,4 +97,12 @@ def solveCircles(hruList):
else:
# Continue searching in the flow cascade
statusMap[targetHru.id] = 2
targetHru = hruMap[targetHru.toHruId]
\ No newline at end of file
targetHru = hruMap[targetHru.toHruId]
if __name__ == '__main__':
if len(sys.argv) > 2:
inPath = sys.argv[1]
outPath = sys.argv[2]
circleKill(inPath, outPath)
else:
sys.exit('Please provide two arguments: INPUT_PATH OUTPUT_PATH_PREFIX')
\ No newline at end of file
Markdown is supported
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