Skip to content

Commit

Permalink
Merge pull request #15 from Zahrt-Lab/main
Browse files Browse the repository at this point in the history
Fix dataset bug
  • Loading branch information
m-lueb authored Jan 6, 2025
2 parents 1396089 + 9bc900d commit a2ed225
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 a2ed225

Please sign in to comment.