From 3d41aca67dbfcd01e74eb3bda0ccf7fa59e4c56a Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Mon, 16 Sep 2024 11:25:54 +0200 Subject: [PATCH] Recording cannot be Nonw --- src/spikeinterface/widgets/motion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/widgets/motion.py b/src/spikeinterface/widgets/motion.py index 06c0305351..7c8389cae8 100644 --- a/src/spikeinterface/widgets/motion.py +++ b/src/spikeinterface/widgets/motion.py @@ -344,7 +344,7 @@ def __init__( motion.displacement ), "The number of segments in the recording must be the same as the number of segments in the motion object" - times = recording.get_times(segment_index=segment_index) if recording is not None else None + times = recording.get_times(segment_index=segment_index) plot_data = dict( sampling_frequency=motion_info["parameters"]["sampling_frequency"],