Skip to content

Commit

Permalink
Merge pull request #269 from AurelienJaquier/ASC-hoc
Browse files Browse the repository at this point in the history
upper case ASC, SWC compatible hoc template
  • Loading branch information
AurelienJaquier authored Apr 12, 2024
2 parents 13c9daa + 5589483 commit 3d21d31
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 3d21d31

Please sign in to comment.