From 08fe4fe97d3da30bf5702436919b48b135f78ed8 Mon Sep 17 00:00:00 2001 From: golmschenk Date: Wed, 14 Aug 2024 13:46:33 -0400 Subject: [PATCH] Make empty light curve adding of a value still be expanded afterward --- src/qusi/internal/light_curve_transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qusi/internal/light_curve_transforms.py b/src/qusi/internal/light_curve_transforms.py index 4977fb9..9288e70 100644 --- a/src/qusi/internal/light_curve_transforms.py +++ b/src/qusi/internal/light_curve_transforms.py @@ -73,7 +73,7 @@ def make_uniform_length(example: np.ndarray, length: int) -> np.ndarray: pass if example.shape[0] == 0: example = np.array([-1], dtype=example.dtype) - elif example.shape[0] > length: + if example.shape[0] > length: example = example[:length] else: elements_to_repeat = length - example.shape[0]