From 653579b1cafe98c90ba8fb02a2a8eb4f97077939 Mon Sep 17 00:00:00 2001 From: Gabrielle Shvartsman <165222483+gshvarts@users.noreply.github.com> Date: Wed, 26 Nov 2025 13:41:22 -0800 Subject: [PATCH] Fix variable name for valid times in lfp_band.py --- src/spyglass/lfp/analysis/v1/lfp_band.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spyglass/lfp/analysis/v1/lfp_band.py b/src/spyglass/lfp/analysis/v1/lfp_band.py index 9ac2e51fe..0ac6192b5 100644 --- a/src/spyglass/lfp/analysis/v1/lfp_band.py +++ b/src/spyglass/lfp/analysis/v1/lfp_band.py @@ -462,10 +462,10 @@ def make(self, key: dict) -> None: } ).fetch("valid_times") lfp_band_valid_times = lfp_band_valid_times.censor(new_timestamps) - lfp_valid_times.set_key(**key, pipeline="lfp band") + lfp_band_valid_times.set_key(**key, pipeline="lfp band") if len(tmp_valid_times) == 0: # TODO: swap for cautious_insert # add an interval list for the LFP valid times - IntervalList.insert1(lfp_valid_times.as_dict) + IntervalList.insert1(lfp_band_valid_times.as_dict) else: # check that the valid times are the same assert np.isclose(