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

update links to morphology documentation #424

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/source/glia.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Glia
====

MorphIO also support reading and writing glia (such as astrocytes) from/to disk according to the
`H5 specification <https://developer.humanbrainproject.eu/docs/projects/morphology-documentation/latest/h5v1.html>`__
`H5 specification <https://morphology-documentation.readthedocs.io/en/latest/h5v1.html>`__


.. code-block:: python

Expand Down
2 changes: 1 addition & 1 deletion doc/source/reticulum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Endoplasmic reticulum
=====================

Endoplasmic reticulum can also be stored and written to H5 file. The specification is part of the
`BBP morphology documentation <https://developer.humanbrainproject.eu/docs/projects/morphology-documentation/latest/h5v1.html>`__
`BBP morphology documentation <https://morphology-documentation.readthedocs.io/en/latest/h5v1.html>`__
There is one endoplasmic reticulum object per morphology. It contains 4 attributes. Each attribute
is an array and each line refers to the value of the attribute for a specific neuronal section.

Expand Down
2 changes: 1 addition & 1 deletion doc/source/specification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Custom annotations
Custom annotations are not supported.


.. _`.h5`: https://developer.humanbrainproject.eu/docs/projects/morphology-documentation/0.0.2/h5v1.html
.. _`.h5`: https://morphology-documentation.readthedocs.io/en/latest/h5v1.html
.. _`.swc`: http://www.neuronland.org/NLMorphologyConverter/MorphologyFormats/SWC/Spec.html
.. _`NeuroMorpho`: http://neuromorpho.org/SomaFormat.html
.. _`conical frustums`: http://mathworld.wolfram.com/ConicalFrustum.html
11 changes: 4 additions & 7 deletions src/readers/morphologyHDF5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,10 @@ void MorphologyHDF5::_readMetadata(const std::string& source) {
metadata.getAttribute(_a_family).read(family);
_properties._cellLevel._cellFamily = static_cast<CellFamily>(family);
} else {
throw RawDataError("Error in " + source +
"\nUnsupported h5 version: " + std::to_string(majorVersion) +
"." + std::to_string(minorVersion) +
" See "
"https://bbpteam.epfl.ch/documentation/projects/"
"Morphology%20Documentation/latest/"
"index.html for the list of supported versions.");
std::string msg = "Error in " + source +
"\nUnsupported h5 version: " + std::to_string(majorVersion) +
"." + std::to_string(minorVersion);
throw RawDataError(msg);
}
} else {
throw RawDataError("Missing " + _a_version +
Expand Down
2 changes: 1 addition & 1 deletion tests/test_2_neurolucida.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def test_skip_header():
def test_read_with_duplicates():
'''Section points are duplicated in the file
what I think the
https://developer.humanbrainproject.eu/docs/projects/morphology-documentation/0.0.2/h5v1.html
https://morphology-documentation.readthedocs.io/en/latest/h5v1.html
would look like'''

n = Morphology(with_duplicate, extension='asc')
Expand Down