From 599d19a22e58bc19821142a07845f723220ac27e Mon Sep 17 00:00:00 2001 From: Thomas Nowotny Date: Tue, 23 Feb 2021 21:24:52 +0000 Subject: [PATCH] Removed dirname confusion (laeding to missing slash) --- src/ALsim.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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