Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sean Fitzgibbon
SlideR 🍔
Commits
2b2543ea
Commit
2b2543ea
authored
Jan 26, 2022
by
Sean Fitzgibbon
Browse files
accomodate more point style
parent
2fcd1b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
slider/external/neurolucida.py
View file @
2b2543ea
...
...
@@ -199,8 +199,8 @@ def is_number(s):
def
is_point
(
p
):
'''Test if section looks like a point section'''
result
=
True
if
len
(
p
)
!=
5
:
result
=
False
if
not
all
([
is_number
(
n
)
for
n
in
p
[:
-
1
]]):
result
=
False
if
len
(
p
)
not
in
[
4
,
5
]
:
result
=
False
if
not
all
([
is_number
(
n
)
for
n
in
p
[:
4
]]):
result
=
False
return
result
def
parse_point
(
p
):
...
...
@@ -265,7 +265,7 @@ def to_data(sections):
else
:
contour
.
append
(
parse_contour
(
section
))
cells
=
np
.
asarray
(
cells
)
if
len
(
cells
)
>
0
:
cells
=
np
.
asarray
(
cells
)
return
contour
,
cells
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment