From 651f813ca838a12f87da93be0435e4263d481a13 Mon Sep 17 00:00:00 2001 From: luiz Date: Tue, 20 Jun 2023 14:56:50 +0200 Subject: [PATCH 1/2] fix for fiberstable --- nwbwidgets/controllers/group_and_sort_controllers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nwbwidgets/controllers/group_and_sort_controllers.py b/nwbwidgets/controllers/group_and_sort_controllers.py index ded04393..2976fba5 100644 --- a/nwbwidgets/controllers/group_and_sort_controllers.py +++ b/nwbwidgets/controllers/group_and_sort_controllers.py @@ -136,6 +136,7 @@ def __init__( "TimeIntervals": "trials", "Units": "units", "PlaneSegmentation": "image_planes", + "FibersTable": "traces", } desc = dt_desc_map[dynamic_table.neurodata_type] if dynamic_table is not None else "traces" self.range_controller = RangeController( From 4dbe0ae61ac0158f9cf54a0d706f7cfbc3ab22e4 Mon Sep 17 00:00:00 2001 From: Luiz Tauffer Date: Tue, 20 Jun 2023 19:46:33 +0200 Subject: [PATCH 2/2] Update nwbwidgets/controllers/group_and_sort_controllers.py Co-authored-by: Ben Dichter --- nwbwidgets/controllers/group_and_sort_controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nwbwidgets/controllers/group_and_sort_controllers.py b/nwbwidgets/controllers/group_and_sort_controllers.py index 2976fba5..e1cb25ab 100644 --- a/nwbwidgets/controllers/group_and_sort_controllers.py +++ b/nwbwidgets/controllers/group_and_sort_controllers.py @@ -138,7 +138,7 @@ def __init__( "PlaneSegmentation": "image_planes", "FibersTable": "traces", } - desc = dt_desc_map[dynamic_table.neurodata_type] if dynamic_table is not None else "traces" + desc = dt_desc_map.get(dynamic_table.neurodata_type, "traces") if dynamic_table is not None else "traces" self.range_controller = RangeController( 0, self.nitems,