def calibration(self):
    img = QImage(self.SIZE[0], self.SIZE[1], QImage.Format_Mono)
    bitmap = QBitmap.fromImage(img, Qt.MonoOnly)
    bitmap.fill(Qt.black)
    self.make_calnoise()
    img = self.overlay_marks(self.calnoise.scaledToHeight(self.f_size.height()), False, True)
    self.calibration_pdf(img)
    QDesktopServices.openUrl(QUrl.fromLocalFile(self.get_path_to_calibration_file()))
    return img
def calibration(self):
    img = QImage(self.SIZE[0], self.SIZE[1], QImage.Format_Mono)
    bitmap = QBitmap.fromImage(img, Qt.MonoOnly)
    bitmap.fill(Qt.black)
    self.make_calnoise()
    img = self.overlay_marks(self.calnoise.scaledToHeight(self.f_size.height()), False, True)
    self.calibration_pdf(img)
    QDesktopServices.openUrl(QUrl.fromLocalFile(self.get_path_to_calibration_file()))
    return img