From 5953d6cdaac993928988a715725b824edf11d00a Mon Sep 17 00:00:00 2001 From: Heberto Mayorquin Date: Wed, 4 Sep 2024 18:25:57 -0600 Subject: [PATCH] quality in phy to string --- src/spikeinterface/extractors/phykilosortextractors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/spikeinterface/extractors/phykilosortextractors.py b/src/spikeinterface/extractors/phykilosortextractors.py index 7ffbc166de..a75ce97198 100644 --- a/src/spikeinterface/extractors/phykilosortextractors.py +++ b/src/spikeinterface/extractors/phykilosortextractors.py @@ -159,7 +159,8 @@ def __init__( self.set_property(key="original_cluster_id", values=cluster_info[prop_name]) elif prop_name == "group": # rename group property to 'quality' - self.set_property(key="quality", values=cluster_info[prop_name]) + values = cluster_info[prop_name].values.astype("str") + self.set_property(key="quality", values=values) else: if load_all_cluster_properties: # pandas loads strings with empty values as objects with NaNs