Skip to content

Commit

Permalink
Fix dataset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tpaul committed Nov 22, 2024
1 parent 2fe2454 commit 9bc900d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mocca2/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 9bc900d

Please sign in to comment.