Skip to content

Commit 3d21d31

Browse files
Merge pull request #269 from AurelienJaquier/ASC-hoc
upper case ASC, SWC compatible hoc template
2 parents 13c9daa + 5589483 commit 3d21d31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bluepymm/templates/cell_template_neurodamus_sbo.jinja2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ proc load_morphology(/* morphology_dir, morphology_name */) {localobj morph, imp
144144
sscanf(morph_path, "%s", extension.s)
145145

146146
sf.right(extension.s, sf.len(extension.s)-3)
147+
if(strcmp(extension.s, "ASC") == 0 ){
148+
extension.s = "asc"
149+
}
150+
if(strcmp(extension.s, "SWC") == 0 ){
151+
extension.s = "swc"
152+
}
147153

148154
if( strcmp(extension.s, "asc") == 0 ) {
149155
morph = new Import3d_Neurolucida3()

0 commit comments

Comments
 (0)