diff --git a/src/qusi/internal/light_curve_transforms.py b/src/qusi/internal/light_curve_transforms.py index 0f829fe..4977fb9 100644 --- a/src/qusi/internal/light_curve_transforms.py +++ b/src/qusi/internal/light_curve_transforms.py @@ -71,6 +71,8 @@ def make_uniform_length(example: np.ndarray, length: int) -> np.ndarray: ) if example.shape[0] == length: pass + if example.shape[0] == 0: + example = np.array([-1], dtype=example.dtype) elif example.shape[0] > length: example = example[:length] else: