We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0dae98 commit 0cd91b2Copy full SHA for 0cd91b2
src/segmentation_skeleton_metrics/utils/graph_util.py
@@ -146,10 +146,13 @@ def to_graph(self, swc_dict):
146
147
"""
148
# Initialize graph
149
- graph = SkeletonGraph(anisotropy=self.anisotropy)
150
- graph.init_voxels(swc_dict["voxel"])
151
- graph.set_filename(swc_dict["swc_id"] + ".swc")
152
- graph.set_nodes(len(swc_dict["id"]))
+ try:
+ graph = SkeletonGraph(anisotropy=self.anisotropy)
+ graph.init_voxels(swc_dict["voxel"])
+ graph.set_filename(swc_dict["swc_id"] + ".swc")
153
+ graph.set_nodes(len(swc_dict["id"]))
154
+ except:
155
+ print("Failed at Line 155 -", swc_dict["swc_id"] + ".swc")
156
157
# Build graph
158
id_lookup = dict()
0 commit comments