From 55894833f19963293631b0775f4f92a774df64ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Fri, 12 Apr 2024 09:03:15 +0200 Subject: [PATCH] upper case ASC, SWC compatible hoc template --- bluepymm/templates/cell_template_neurodamus_sbo.jinja2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bluepymm/templates/cell_template_neurodamus_sbo.jinja2 b/bluepymm/templates/cell_template_neurodamus_sbo.jinja2 index fceb102..8a793ad 100644 --- a/bluepymm/templates/cell_template_neurodamus_sbo.jinja2 +++ b/bluepymm/templates/cell_template_neurodamus_sbo.jinja2 @@ -144,6 +144,12 @@ proc load_morphology(/* morphology_dir, morphology_name */) {localobj morph, imp sscanf(morph_path, "%s", extension.s) sf.right(extension.s, sf.len(extension.s)-3) + if(strcmp(extension.s, "ASC") == 0 ){ + extension.s = "asc" + } + if(strcmp(extension.s, "SWC") == 0 ){ + extension.s = "swc" + } if( strcmp(extension.s, "asc") == 0 ) { morph = new Import3d_Neurolucida3()