We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eba1c4f commit 3f6f2e2Copy full SHA for 3f6f2e2
pychunkedgraph/meshing/meshgen_utils.py
@@ -129,7 +129,13 @@ def recursive_helper(cur_node_ids):
129
only_child_mask = np.array(
130
[len(children_for_node) == 1 for children_for_node in children_array]
131
)
132
- only_children = children_array[only_child_mask].astype(np.uint64).ravel()
+ # Extract children from object array - each filtered element is a 1-element array
133
+ filtered_children = children_array[only_child_mask]
134
+ only_children = (
135
+ np.concatenate(filtered_children).astype(np.uint64)
136
+ if filtered_children.size
137
+ else np.array([], dtype=np.uint64)
138
+ )
139
if np.any(only_child_mask):
140
temp_array = cur_node_ids[stop_layer_mask]
141
temp_array[only_child_mask] = recursive_helper(only_children)
0 commit comments