From dc471984c5621438552b58536897485f762de893 Mon Sep 17 00:00:00 2001 From: cylammarco Date: Sun, 4 Jun 2023 13:31:25 +0300 Subject: [PATCH] calibrator can be initialised with peaks=None --- src/rascal/calibrator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rascal/calibrator.py b/src/rascal/calibrator.py index 0673c22..b711ef7 100644 --- a/src/rascal/calibrator.py +++ b/src/rascal/calibrator.py @@ -1115,7 +1115,7 @@ def set_hough_properties( ) ) / np.ptp(self.pixel_list) - if self.atlas is not None: + if (self.atlas is not None) and (self.peaks is not None): self._generate_pairs() def set_ransac_properties(