From f366b92b99c791c0ec544a4a6537c2da59d59a3a Mon Sep 17 00:00:00 2001 From: Philipp Schlegel Date: Tue, 14 Nov 2023 22:52:11 +0000 Subject: [PATCH] update_ids: deal with pandas StringArray --- fafbseg/flywire/segmentation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fafbseg/flywire/segmentation.py b/fafbseg/flywire/segmentation.py index fd6c939..cc43ea4 100644 --- a/fafbseg/flywire/segmentation.py +++ b/fafbseg/flywire/segmentation.py @@ -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)