I am trying to save output data to a MATLAB file, but I received the following error when I added the line of code: SimConfig.saveMat = True before running the simulation:
Code: Select all
Traceback (most recent call last):
File "tut5.py", line 81, in <module>
sim.createSimulateAnalyze(netParams, simConfig)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/wrappers.py", line 71, in createSimulateAnalyze
sim.analyze()
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/wrappers.py", line 49, in analyze
sim.saveData() # run parallel Neuron simulation
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/netpyne/simFuncs.py", line 1280, in saveData
savemat(sim.cfg.filename+'.mat', tupleToStr(replaceNoneObj(dataSave))) # replace None and {} with [] so can save in .mat format
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio.py", line 211, in savemat
MW.put_variables(mdict)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 846, in put_variables
self._matrix_writer.write_top(var, asbytes(name), is_global)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 587, in write_top
self.write(arr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 616, in write
self.write_struct(narr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 735, in write_struct
self._write_items(arr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 752, in _write_items
self.write(el[f])
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 616, in write
self.write_struct(narr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 735, in write_struct
self._write_items(arr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 752, in _write_items
self.write(el[f])
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 616, in write
self.write_struct(narr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 735, in write_struct
self._write_items(arr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 752, in _write_items
self.write(el[f])
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 616, in write
self.write_struct(narr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 735, in write_struct
self._write_items(arr)
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 752, in _write_items
self.write(el[f])
File "/Users/aliyahtaylor/anaconda/lib/python2.7/site-packages/scipy/io/matlab/mio5.py", line 608, in write
% (arr, type(arr)))
TypeError: Could not convert None (type <type 'NoneType'>) to array