From 42783e3d68debff80a62de3a6c11215a45c19189 Mon Sep 17 00:00:00 2001
From: Sebastian Schmitt <sebastian.schmitt@kip.uni-heidelberg.de>
Date: Tue, 11 Oct 2022 17:05:39 +0200
Subject: [PATCH] Do not restrict SWC record identifier (#1996)
---
arborio/swcio.cpp | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/arborio/swcio.cpp b/arborio/swcio.cpp
index 34a0fec6..f7ae9e79 100644
--- a/arborio/swcio.cpp
+++ b/arborio/swcio.cpp
@@ -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 identifiers 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);
}
--
GitLab