Closed filimarc closed 2 months ago
@danilobenozzo That seems rather impossible if you were using the official versions of the software involved. How could NeuronPopulation
ever be missing arguments, and how could introducing a new breaking change ever be the solution to this existing problem? That seems anachronistic ;p
How could
NeuronPopulation
ever be missing arguments,
since def __init__(self, model: "NeuronCell", instances: list):
is it enough just passing the list as in https://github.com/dbbs-lab/bsb-neuron/blob/4fc632ce1e8306d07a351b34cb1fbd30222742a3/bsb_neuron/adapter.py#L250
?
shouldn't rather be return NeuronPopulation(self._model, [p for p, b in zip(self, item) if b])
?
or only return [p for p, b in zip(self, item) if b]
You are right :) I didn't see that the constructor had 2 arguments :)
When NeuronPopulation obj is created it needs a model, so we fix when is called in getitem