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 -*- # -*- coding: utf-8 -*-
import sys
try: try:
import dbf import dbf
DBF=True DBF=True
...@@ -95,4 +97,12 @@ def solveCircles(hruList): ...@@ -95,4 +97,12 @@ def solveCircles(hruList):
else: else:
# Continue searching in the flow cascade # Continue searching in the flow cascade
statusMap[targetHru.id] = 2 statusMap[targetHru.id] = 2
targetHru = hruMap[targetHru.toHruId] targetHru = hruMap[targetHru.toHruId]
\ No newline at end of file
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