Skip to content

Commit 02a8180

Browse files
dodamihakhileshh
authored andcommitted
fix: even more numpy2 fixes
1 parent 8bdfd22 commit 02a8180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pychunkedgraph/graph/edits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _get_flipped_ids(id_map, node_ids):
393393
returns old or new ids according to the map
394394
"""
395395
ids = [
396-
np.array(list(id_map[id_]), dtype=basetypes.NODE_ID, copy=False)
396+
np.asarray(list(id_map[id_]), dtype=basetypes.NODE_ID)
397397
for id_ in node_ids
398398
]
399399
ids.append(types.empty_1d) # concatenate needs at least one array

0 commit comments

Comments
 (0)