I am running a simulation, where among others the voltage of different dendrite segments is calculated and saved in a pkl file. This is all done in the main.py file. Afterwards the analysis.py script opens this pkl script, and analyses the data and makes figures.
This all worked fine, but I now want to know to which dendrite my data corresponds to. Within the main.py function I store the links to all segments recorded in a variable model.dend containing
Code: Select all
In [2]: model.dends
Out[2]:
[<nrn.Section at 0x10be4b4b0>,
<nrn.Section at 0x10be4b4e0>,
<nrn.Section at 0x10be4b510>,
<nrn.Section at 0x10be4b540>,
Code: Select all
data.recordSec = False
data.SectionsRecorded = model.dends
modelData = sc.emptyObject()
lb.props(modelData)
tstamp = time.strftime("sim%Y%b%d_%H%M%S")
tstamp = 'temp'
dataList = [data, modelData]
fname = './'+tstamp+'.pkl'
f = open(fname, 'wb')
pickle.dump(dataList, f)
f.close()
Code: Select all
ModellingL2_3/L23_model/main_MRG.py in <module>()
277 fname = './'+tstamp+'.pkl'
278 f = open(fname, 'wb')
--> 279 pickle.dump(dataList, f)
280 f.close()
281