BlueBrain / BlueCelluLab

Biologically detailed neural network simulations and analysis API
https://bluecellulab.readthedocs.io/en/latest/
Other
8 stars 12 forks source link

bug when morphology is not in a subfolder #166

Open AurelienJaquier opened 2 months ago

AurelienJaquier commented 2 months ago

When morphology is not in a subfolder and we give, e.g.

morph_file = "./soma_10c.asc"
cell = Cell(hoc_file, morph_file, template_format="v6", emodel_properties=emodel_properties)

the cell can be run as expected, but if we give

morph_file = "soma_10c.asc"
cell = Cell(hoc_file, morph_file, template_format="v6", emodel_properties=emodel_properties)

then we have the following error:

could not open /soma_10c.asc
NEURON: /soma_10c.asc :file is not open
 near line 0

 ^
        File[0].eof()
      Import3d_Neurolucida3[0].rdfile("/soma_10c.asc")
    Import3d_Neurolucida3[0].input("/soma_10c.asc")
  cell_bluecellulab_0x7fffe5c34a90[0].load_morphology("", "soma_10c.asc")

It would be nice if we were allowed to give the morphology path without ./ in front of it.

This is not an urgent issue though.