Skip to content

Commit

Permalink
Removed dirname confusion (laeding to missing slash)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nowotny committed Feb 23, 2021
1 parent b24dfb9 commit 599d19a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ALsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,16 @@ def ALsim(odors, hill_exp, paras):
if state_bufs:
# only save the time array if anything is being saved
t_array= np.arange(0.0,paras["t_total"],model.dT)
np.save(paras["dirname"]+paras["label"]+"_t", t_array)
np.save(dirname+paras["label"]+"_t", t_array)
for p in state_bufs:
state_bufs[p]= np.vstack(state_bufs[p])
np.save(paras["dirname"]+paras["label"]+"_"+p, state_bufs[p])
np.save(dirname+paras["label"]+"_"+p, state_bufs[p])

for pop in paras["rec_spikes"]:
spike_t[pop]= np.hstack(spike_t[pop])
np.save(paras["dirname"]+paras["label"]+"_"+pop+"_spike_t", spike_t[pop])
np.save(dirname+paras["label"]+"_"+pop+"_spike_t", spike_t[pop])
spike_ID[pop]= np.hstack(spike_ID[pop])
np.save(paras["dirname"]+paras["label"]+"_"+pop+"_spike_ID", spike_ID[pop])
np.save(dirname+paras["label"]+"_"+pop+"_spike_ID", spike_ID[pop])

return state_bufs, spike_t, spike_ID

0 comments on commit 599d19a

Please sign in to comment.