From 0144a72f5bab9e38213c35ad24107e950a76c6f1 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Thu, 21 Nov 2024 16:06:57 +0100 Subject: [PATCH] Formatting --- .../nwbutils/nwbwidgetsunitviewer.py | 10 +++------- src/expipe_plugin_cinpla/widgets/curation.py | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/expipe_plugin_cinpla/nwbutils/nwbwidgetsunitviewer.py b/src/expipe_plugin_cinpla/nwbutils/nwbwidgetsunitviewer.py index 4f170a1..e285878 100644 --- a/src/expipe_plugin_cinpla/nwbutils/nwbwidgetsunitviewer.py +++ b/src/expipe_plugin_cinpla/nwbutils/nwbwidgetsunitviewer.py @@ -174,13 +174,7 @@ def __init__( self.unit_list, self.unit_name_text, self.unit_info_text, - widgets.HBox( - [ - spatial_series_label, - self.spatial_series_selector, - self.flip_y_axis - ] - ), + widgets.HBox([spatial_series_label, self.spatial_series_selector, self.flip_y_axis]), widgets.HBox([self.smoothing_slider, self.bin_size_slider]), ] ) @@ -227,8 +221,10 @@ def get_spatial_series(self): def compute_rate_maps(self): import pynapple as nap + try: from spatial_maps import SpatialMap + HAVE_SPATIAL_MAPS = True except: warnings.warn( diff --git a/src/expipe_plugin_cinpla/widgets/curation.py b/src/expipe_plugin_cinpla/widgets/curation.py index 65a97c3..57e35fc 100644 --- a/src/expipe_plugin_cinpla/widgets/curation.py +++ b/src/expipe_plugin_cinpla/widgets/curation.py @@ -221,7 +221,6 @@ def on_action(change): units_dropdown.value = "Raw" on_choose_units(None) - def on_sorter(change): required_values_filled(actions_list) if len(sorter_list.value) > 1: