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.

Replace detection of soma type from static to dynamic? #314

@asanin-epfl

Description

@asanin-epfl

If morphology is built dynamically then it always has SomaType.SOMA_UNDEFINED.

from morphio.mut import Morphology
morpho = Morphology()
morpho.soma.points = [[0, 0, 0]]
morpho.soma.diameters = [1, 1]
print(morpho.soma.type)
# SomaType.SOMA_UNDEFINED

Dynamic detection poses a question. How to detect soma types that exist only for SWC? For example SOMA_CYLINDERS?

cc @tomdele @mgeplf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions