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.

Writing morphs we can't read in v3.3.7 #484

Open
@mgeplf

Description

@mgeplf

@adrien-berchet noted that the following doesn't allow reading:

from morphio import Morphology

morph = Morphology(
    """
    1 1  0  0 0 1. -1
    2 3  0  0 0 1.  1
    3 3  0  5 0 1.  2
    4 3 -5  5 0 1.5 3
    5 3  6  5 0 1.5 3
    6 2  0  0 0 1.  1
    7 2  0 -4 0 1.  6
    8 2  6 -4 0 2.  7
    9 2 -5 -4 0 2.  7
    """,
    extension="swc")

morph.as_mutable().write("test.h5")
Morphology("test.h5")

An warning is emitted on writing:

Soma must be a contour for ASC and H5: see https://github.com/BlueBrain/MorphIO/issues/457

But on reading, it throws an exeption:

RawDataError: Morphology contour with only a single point is not valid: test.h5

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