forgotten changes

This commit is contained in:
2015-10-05 10:58:22 +02:00
parent 38d384896d
commit 02bbb62e4d
3 changed files with 35 additions and 16 deletions

View File

@@ -76,7 +76,7 @@ def load_spike_data(cell, max_time):
if data[0][2][-1]/1000 < max_time:
return None
else:
return data[0][2][data[0][2] <= max_time*1000]
return data[0][2][data[0][2] <= max_time*1000]/1000
if __name__ == '__main__':
@@ -103,12 +103,11 @@ if __name__ == '__main__':
index += 1
continue
spikes = load_spike_data(cell, 20)
if spikes is None:
print 'not enough baseline spikes'
index += 1
continue
eod_data = load_eod_data(cell, 20, 200000)
eod_data = load_eod_data(cell, 20, 20000)
name = cell.split('/')[-1] + '_baseline.mat'
sp.savemat(name, {'spike_times':spikes, 'eod':eod_data})
found += 1