From bc75c5c7ece0059a03538049e012f67e22fd6da7 Mon Sep 17 00:00:00 2001 From: fdsteffen <35061965+fdsteffen@users.noreply.github.com> Date: Mon, 16 Sep 2024 23:07:12 +0200 Subject: [PATCH] Fix type mismatch between filters and table columns --- src/napari_ome_zarr_navigator/img_browser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/napari_ome_zarr_navigator/img_browser.py b/src/napari_ome_zarr_navigator/img_browser.py index f5bdc9d..84dcb6a 100644 --- a/src/napari_ome_zarr_navigator/img_browser.py +++ b/src/napari_ome_zarr_navigator/img_browser.py @@ -79,6 +79,9 @@ def initialize_filters(self): self.df_without_pk = self.df.drop( columns=["row", "col"] ).apply(pd.to_numeric, errors="ignore") + self.df = pd.concat( + (self.df[["row", "col"]], self.df_without_pk), axis=1 + ) self.filter_names = self.df_without_pk.columns self.filters = Container( widgets=[