From 9bc900d255c7665906e03f3a614aaa9f410beaa9 Mon Sep 17 00:00:00 2001 From: tpaul Date: Fri, 22 Nov 2024 17:34:29 -0500 Subject: [PATCH] Fix dataset bug --- src/mocca2/dataset/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mocca2/dataset/dataset.py b/src/mocca2/dataset/dataset.py index f0570bc..07d1ab3 100644 --- a/src/mocca2/dataset/dataset.py +++ b/src/mocca2/dataset/dataset.py @@ -295,7 +295,7 @@ def check_nans(self): kwargs = { "method": settings.baseline_model, "smoothness": settings.baseline_smoothness, - "smooth_wl": max(len(self.wavelength()) // 20, 4), + "smooth_wl": max(len(self.wavelength()) // 20, 4) if len(self.wavelength()) >= 4 else None, } if cores == 1: for chromatogram in self.chromatograms.values():