Skip to content

Commit

Permalink
update_ids: deal with pandas StringArray
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Nov 14, 2023
1 parent 5b5830e commit f366b92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fafbseg/flywire/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,8 @@ def update_ids(id,
'`root` column.')
elif isinstance(id, pd.Series):
id = id.values
elif isinstance(id, pd.core.arrays.string_.StringArray):
id = np.asarray(id)

if isinstance(timestamp, str) and timestamp.startswith('mat'):
client = get_cave_client(dataset=dataset)
Expand Down

0 comments on commit f366b92

Please sign in to comment.