Hello guys!
While I am trying to have Izhikevich mechanism, I get the following error:
[
netParams.cellParams.keys(): odict_keys(['PYR', 'I', 'PYR_Izhi'])
Start time: 2024-06-12 09:48:14.172004
Creating network of 2 cell populations on 1 hosts...: 0%| |
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-24-5f9905b63eec> in <cell line: 225>()
223 netParams = netParams)
224 sim.net.createPops() # instantiate network populations
--> 225 sim.net.createCells() # instantiate network cells based on defined populations
226 sim.net.connectCells() # create connections between cells based on params
227 sim.net.addStims() # add stimulation
6 frames
/content/netpyne/netpyne/cell/compartCell.py in _addPointProcesses(self, sectName, sectParams, cellType, cellVars)
485 sec['pointps'][pointpName] = Dict()
486 loc = pointpParams['loc'] if 'loc' in pointpParams else 0.5 # set location
--> 487 Pointp = getattr(h, pointpParams['mod'])
488 pointpObj = Pointp(loc, sec=sec['hObj']) # create h Pointp object (eg. h.Izhi2007b)
489
AttributeError: 'hoc.HocObject' object has no attribute 'izhi2007b']
The following shows how I compile this "izhi2007b.mod" file:
------------------------------------------------------------------------------------
%cd /content/
!nrnivmodl
/content
INFO : Using neuron-nightly Package (Developer Version)
/content
cfiles =
Mod files: "izhi2007b.mod"
Creating 'x86_64' directory for .o files.
MODOBJS= ./izhi2007b.o
-> Compiling mod_func.cpp
-> NMODL ../izhi2007b.mod
Translating izhi2007b.mod into /content/x86_64/izhi2007b.cpp
Notice: VERBATIM blocks are not thread safe
-> Compiling /content/x86_64/izhi2007b.cpp
=> LINKING shared library "/content/x86_64/./libnrnmech.so"
=> LINKING executable "/content/x86_64/./special" LDFLAGS are:
Successfully created x86_64/special
------------------------------------------------------------------------------------
This is how I added Izhi2007b:
PYR_Izhi = {'secs': {}}
PYR_Izhi['secs']['soma'] = {'geom': {}, 'pointps': {}} # soma params dict
PYR_Izhi['secs']['soma']['geom'] = {'diam': 10.0, 'L': 10.0, 'cm': 31.831} # soma geometry
PYR_Izhi['secs']['soma']['pointps']['Izhi'] = { # soma Izhikevich properties
'C':1,
'k':0.7,
'vr':-60,
'vt':-40,
'vpeak':35,
'a':0.03,
'b':-2,
'c':-50,
'd':100,
'celltype':1}
netParams.cellParams['PYR_Izhi'] = PYR_Izhi
print('netParams.cellParams.keys(): ', netParams.cellParams.keys())
I would be grateful if you could help me with this.
Thank you.
Reza