Page 1 of 1

Error: sec had previously been connected to parent sec

Posted: Tue Nov 28, 2017 10:00 am
by salvadord
Received by email:

"Hello Salvador,

I get this message when I use importCellParams:
Notice: <netpyne.cell.CompartCell object at 0x7f74a36621d0>.dend_2(0) had previously been connected to parent <netpyne.cell.CompartCell object at 0x7f74a36621d0>.soma(1)

Here's the code:

Code: Select all

goc_cellRule = netParams.importCellParams(label='Golgi_2007', conds={'cellType': 'goc', 'cellModel': 'HH'},
        fileName='Golgi_cell/Golgi_template.hoc', cellName='Goc', importSynMechs=True)
netParams.cellParams['goc'] = goc_cellRule  
Could you have a look at it?

Ciao
Sergio"

Re: Error: sec had previously been connected to parent sec

Posted: Tue Nov 28, 2017 10:01 am
by salvadord
Hi Sergio,

Just remove the line: netParams.cellParams['goc'] = goc_cellRule

When you use the importCellParams() it already stores the imported rule in netParams, in this case in netParams[‘Golgi_2007’] (since label=‘Golgi_2007’). Therefore you were duplicating the cell rule by storing it in cellParams[‘goc’] and that yielded an error.

ciao
salva