# Description of problem

Hi all,

I have a spatial neuron and the Extracellular space modeled as a NeuronGroup.

I’m trying to connect to the ECS only the variables from a particular compartment of the neuron.

I linked the variables and seemed ok, however I get the following error about no longer existing ecs variables I guess. But I really don’t know how to solve this.

Thanks to anyone will spend a minute to try to help me,

Barbara

# Minimal code to reproduce problem

ecs.IKAn = linked_var(neuro.L[0].IKA)

# Full traceback of error (if relevant)

ReferenceError: weakly-referenced object no longer exists

Error encountered with object named “neurongroup_stateupdater”.