Skip to content

Commit

Permalink
fix: attribute type must be np.array
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshh committed Sep 8, 2023
1 parent dc41e19 commit cdae248
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pychunkedgraph/graph/edits.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,10 @@ def _get_flipped_ids(id_map, node_ids):
"""
returns old or new ids according to the map
"""
ids = [np.array(list(id_map[id_]), dtype=basetypes.NODE_ID, copy=False) for id_ in node_ids]
ids = [
np.array(list(id_map[id_]), dtype=basetypes.NODE_ID, copy=False)
for id_ in node_ids
]
return np.concatenate(ids)


Expand Down Expand Up @@ -639,7 +642,9 @@ def _update_root_id_lineage(self):

for former_root_id in former_roots:
val_dict = {
attributes.Hierarchy.NewParent: new_roots,
attributes.Hierarchy.NewParent: np.array(
new_roots, dtype=basetypes.NODE_ID
),
attributes.OperationLogs.OperationID: self._operation_id,
}
self.new_entries.append(
Expand Down

0 comments on commit cdae248

Please sign in to comment.