Error: sec had previously been connected to parent sec

A Python package that facilitates development and use of models of biological neural networks

Moderator: tom_morse

Post Reply
salvadord
Posts: 86
Joined: Tue Aug 18, 2015 3:49 pm

Error: sec had previously been connected to parent sec

Post 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"
salvadord
Posts: 86
Joined: Tue Aug 18, 2015 3:49 pm

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

Post 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
Post Reply