Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

bug when morphology is not in a subfolder #166

@AurelienJaquier

Description

@AurelienJaquier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions