Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
42783e3d
Unverified
Commit
42783e3d
authored
2 years ago
by
Sebastian Schmitt
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Do not restrict SWC record identifier (#1996)
parent
48f4795e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arborio/swcio.cpp
+1
-6
1 addition, 6 deletions
arborio/swcio.cpp
with
1 addition
and
6 deletions
arborio/swcio.cpp
+
1
−
6
View file @
42783e3d
...
...
@@ -46,7 +46,7 @@ swc_mismatched_tags::swc_mismatched_tags(int record_id):
{}
swc_unsupported_tag
::
swc_unsupported_tag
(
int
record_id
)
:
swc_error
(
"
Only
SWC record identifier
s of 1, 2, 3 or 4 are supported
."
,
record_id
)
swc_error
(
"
Unsupported
SWC record identifier."
,
record_id
)
{}
// Record I/O:
...
...
@@ -225,11 +225,6 @@ ARB_ARBORIO_API arb::segment_tree load_swc_neuron_raw(const swc_data& data) {
throw
swc_mismatched_tags
(
it
->
id
);
}
// No soma: fall back to Arbor interpretation.
// Check for tags unsupported by NEURON beforehand.
if
(
auto
it
=
std
::
find_if
(
R
.
begin
(),
R
.
end
(),
[](
const
auto
&
r
)
{
return
r
.
tag
<
1
||
r
.
tag
>
4
;});
it
!=
R
.
end
())
{
throw
swc_unsupported_tag
(
R
[
std
::
distance
(
R
.
begin
(),
it
)].
id
);
}
return
load_swc_arbor_raw
(
data
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment