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(