Skip to content

Commit

Permalink
Fix type mismatch between filters and table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
fdsteffen committed Sep 16, 2024
1 parent 391ad91 commit bc75c5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/napari_ome_zarr_navigator/img_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check warning on line 82 in src/napari_ome_zarr_navigator/img_browser.py

View check run for this annotation

Codecov / codecov/patch

src/napari_ome_zarr_navigator/img_browser.py#L82

Added line #L82 was not covered by tests
(self.df[["row", "col"]], self.df_without_pk), axis=1
)
self.filter_names = self.df_without_pk.columns
self.filters = Container(
widgets=[
Expand Down

0 comments on commit bc75c5c

Please sign in to comment.