Skip to content

Commit dca5ff5

Browse files
committed
Fix division by 2
1 parent 3841108 commit dca5ff5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/Training/python/Task_Scripts/Raw_Data2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
size_c = image.getSizeC()
3939
size_t = image.getSizeT()
4040
t, c = 0, 0 # first plane of the image
41-
z = size_z/2 # at the mid Z-section
41+
z = size_z // 2 # at the mid Z-section
4242
x, y, w, h = 5, 5, 100, 100 # Our pre-defined x, y, w, h
4343
tile = (x, y, w, h)
4444
pixels = image.getPrimaryPixels()
@@ -55,7 +55,7 @@
5555
# Advanced: For each time point, get a column of data (E.g. for kymograph)
5656
size_y = image.getSizeY()
5757
size_x = image.getSizeX()
58-
x = size_x/2
58+
x = size_x // 2
5959
y = 0
6060
width = 10 # we were asked for '1' but this looks nicer
6161
height = size_x

examples/Training/python/Task_Scripts/Raw_Data_Task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
size_c = image.getSizeC()
4141
size_t = image.getSizeT()
4242
t, c = 0, 0 # first plane of the image
43-
z = size_z/2 # at the mid Z-section
43+
z = size_z // 2 # at the mid Z-section
4444
x, y, w, h = 5, 5, 100, 100 # Our pre-defined x, y, w, h
4545
tile = (x, y, w, h)
4646
pixels = image.getPrimaryPixels()
@@ -57,7 +57,7 @@
5757
# Advanced: For each time point, get a column of data (E.g. for kymograph)
5858
size_y = image.getSizeY()
5959
size_x = image.getSizeX()
60-
x = size_x/2
60+
x = size_x // 2
6161
y = 0
6262
width = 10 # we were asked for '1' but this looks nicer
6363
height = size_x

0 commit comments

Comments
 (0)