From 8f60db3d2b1296c8def8aef173ab2fb83db26459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sun, 9 Nov 2025 13:33:00 -0500 Subject: [PATCH] STY: Disallow `None` for mandatory PET model parameters Disallow `None` for mandatory PET model `timepoints` and `xlim` parameters. --- src/nifreeze/model/pet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nifreeze/model/pet.py b/src/nifreeze/model/pet.py index 9428bdb91..e9a03e9ba 100644 --- a/src/nifreeze/model/pet.py +++ b/src/nifreeze/model/pet.py @@ -57,8 +57,8 @@ class PETModel(BaseModel): def __init__( self, dataset: PET, - timepoints: list | np.ndarray | None = None, - xlim: float | None = None, + timepoints: list | np.ndarray, + xlim: float, n_ctrl: int | None = None, order: int = 3, smooth_fwhm: float = 10.0,