diff --git a/src/ALsim.py b/src/ALsim.py index 4f779cd..5da19cb 100644 --- a/src/ALsim.py +++ b/src/ALsim.py @@ -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