Skip to content

Commit

Permalink
upper case ASC, SWC compatible hoc template
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaquier Aurélien Tristan committed Apr 12, 2024
1 parent 13c9daa commit 5589483
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bluepymm/templates/cell_template_neurodamus_sbo.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5589483

Please sign in to comment.