Skip to content

Commit 593b2ff

Browse files
authored
Merge pull request #22 from SiLab-Bonn/fix-examples
Fix examples with py3
2 parents eb9e7ab + a9df884 commit 593b2ff

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/add_cluster_calculation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def pprint_array(array): # Just to print the arrays in a nice way
1515
for row in array:
1616
print('')
1717
for i, column in enumerate(row):
18-
sys.stdout.write(' ' * (offsets[i] / 2))
18+
sys.stdout.write(' ' * (offsets[i] // 2))
1919
sys.stdout.write(str(column))
2020
sys.stdout.write('\t')
2121
print('')

examples/add_cluster_event_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def pprint_array(array): # Just to print the arrays in a nice way
1515
for row in array:
1616
print('')
1717
for i, column in enumerate(row):
18-
sys.stdout.write(' ' * (offsets[i] / 2))
18+
sys.stdout.write(' ' * (offsets[i] // 2))
1919
sys.stdout.write(str(column))
2020
sys.stdout.write('\t')
2121
print('')

examples/different_data_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def pprint_array(array): # Just to print the arrays in a nice way
1515
for row in array:
1616
print('')
1717
for i, column in enumerate(row):
18-
sys.stdout.write(' ' * (offsets[i] / 2))
18+
sys.stdout.write(' ' * (offsets[i] // 2))
1919
sys.stdout.write(str(column))
2020
sys.stdout.write('\t')
2121
print('')

examples/howto_use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def pprint_array(array): # Just to print the arrays in a nice way
1515
for row in array:
1616
print('')
1717
for i, column in enumerate(row):
18-
sys.stdout.write(' ' * (offsets[i] / 2))
18+
sys.stdout.write(' ' * (offsets[i] // 2))
1919
sys.stdout.write(str(column))
2020
sys.stdout.write('\t')
2121
print('')

0 commit comments

Comments
 (0)