Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hru-delin-dev
hru-delin
Commits
968c2408
Unverified
Commit
968c2408
authored
May 02, 2020
by
Julien Veyssier
Browse files
allow standalone call of circleKill.py
Signed-off-by:
Julien Veyssier
<
eneiluj@posteo.net
>
parent
a775a323
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/circleKill.py
100644 → 100755
View file @
968c2408
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment