Page 1 of 1

Simulation fails when adding 3D location to cell

Posted: Mon May 12, 2025 5:16 pm
by EleBern
Hello,

I am working on a model of the granular layer in which Golgi and granule cells are explicitly modelled.
I would like to add the 3D location of each cell using pt3dadd. I am able to do so for the Golgi cells. However, when adding the 3D location to the granule cells' soma, the job crashes with the following error:

Code: Select all

NEURON: spFactor error: Singular
  in run.hoc near line 776
  pc1.psolve(tstop)
            ^     
      ParallelContext[0].psolve(20)
     xopen("run.hoc")
Adding the location itself does not produce an error, the job crashes when the model is being run. Also, the model runs fine when the 3D location of the granule cells is not defined.

I would appreciate any help on how to debug this.

Thank you,
Kind regards

Re: Simulation fails when adding 3D location to cell

Posted: Tue May 13, 2025 11:49 am
by ted
I seem to have misplaced my scrying stone, and without that it is difficult to diagnose the unseen. Perhaps you could share what you mean by "add the 3D location" e.g. by providing code examples of what you did that worked, and what you did that didn't work.

Re: Simulation fails when adding 3D location to cell

Posted: Sun Jun 01, 2025 5:19 pm
by EleBern
Hi Ted,

Thank you for offering to look at my code. I tried reproducing the issue with the simplest model possible, but I didn't manage to. In the end I decided not to add the locations to the cells.

Re: Simulation fails when adding 3D location to cell

Posted: Tue Jun 03, 2025 11:43 am
by ted
You might find a solution to your problem by reading about specification of geometry with Python
https://nrn.readthedocs.io/en/latest/py ... y-geometry
or hoc
https://nrn.readthedocs.io/en/latest/ho ... l#geometry