From 8e934dd75551efedf5ec50c594a91a489689a061 Mon Sep 17 00:00:00 2001 From: Ryan Harvey Date: Fri, 13 Sep 2024 17:56:41 -0400 Subject: [PATCH] fix: is False to ~ caused by previous linting --- neuro_py/io/loading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neuro_py/io/loading.py b/neuro_py/io/loading.py index 5ef6ab1..a906df6 100644 --- a/neuro_py/io/loading.py +++ b/neuro_py/io/loading.py @@ -1483,7 +1483,7 @@ def load_spikes( if remove_bad_unit: # bad units will be tagged true, so only keep false values - restrict_idx = cell_metrics.bad_unit.values is False + restrict_idx = ~cell_metrics.bad_unit.values cell_metrics = cell_metrics[restrict_idx] st = st[restrict_idx]