BlueBrain / morph-tool

https://morph-tool.readthedocs.org/
GNU Lesser General Public License v3.0
8 stars 7 forks source link

Use the soma type to choose the converter instead of relying on the version attribute #130

Closed adrien-berchet closed 7 months ago

adrien-berchet commented 7 months ago

Context

Currently the morph_tool.converter.convert function chooses the converter by checking the morph.version[0] attribute, which not convenient for morphologies created programmatically instead of morphologies loaded from a file.

Resolution

This PR chooses the proper converter based on the actual soma type and the target file extension. So it should work for all morphologies, not only the ones read from file.