Skip to content

Commit c046824

Browse files
committed
off by one
1 parent 12733a0 commit c046824

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
- name: Run maxflow demo (and install deps)
5050
run: |
5151
pip install SimpleITK pillow matplotlib
52+
cd ${{github.workspace}}/examples && python demo_maxflow.py 0
5253
cd ${{github.workspace}}/examples && python demo_maxflow.py 1
5354
cd ${{github.workspace}}/examples && python demo_maxflow.py 2
5455
cd ${{github.workspace}}/examples && python demo_maxflow.py 3
55-
cd ${{github.workspace}}/examples && python demo_maxflow.py 4
5656
5757
#- name: Run densecrf demo
5858
# run: python ${{github.workspace}}/examples/demo_densecrf.py

examples/demo_maxflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_interactive_max_flow3d():
192192

193193
if len(sys.argv) == 1:
194194
raise ValueError("Please, provide an argument.")
195-
195+
196196
method = sys.argv[1]
197197
if(method == '0'):
198198
demo_maxflow()
@@ -203,4 +203,4 @@ def test_interactive_max_flow3d():
203203
elif(method == '3'):
204204
test_interactive_max_flow3d()
205205
else:
206-
raise ValueError("Invalid number:" + method)
206+
raise ValueError("Invalid number: " + method)

0 commit comments

Comments
 (0)