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.
Context
Currently the
morph_tool.converter.convert
function chooses the converter by checking themorph.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.