Skip to content

Commit

Permalink
Make empty light curve adding of a value still be expanded afterward
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Aug 14, 2024
1 parent 96ff8ba commit 08fe4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qusi/internal/light_curve_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 08fe4fe

Please sign in to comment.