Skip to content

Commit

Permalink
Fixed to avoid float-valued list indices error
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Feb 16, 2018
1 parent 76d3517 commit e7c9b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Potjans2014/plotting.py
Expand Up @@ -16,7 +16,7 @@ def show_raster_bars(t_start, t_stop, n_rec, frac_to_plot, path):
pop_list = ['E', 'I']

for i in range(8):
layer = i / 2
layer = int(i / 2)
pop = i % 2
filestart = path + 'spikes_' + str(layer_list[layer]) + '_' + str(pop_list[pop]) + '*'
filelist = glob.glob(filestart)
Expand All @@ -43,7 +43,7 @@ def show_raster_bars(t_start, t_stop, n_rec, frac_to_plot, path):
id_count = 0
print("Mean rates")
for i in range(8)[::-1]:
layer = i / 2
layer = int(i / 2)
pop = i % 2
rate = 0.0
t_spikes = spikes[i][:, 0]
Expand Down

0 comments on commit e7c9b54

Please sign in to comment.