def empty_calgen(request, empty_calibration_library): return CalibrationGenerator()
def calgen(request, ring_pattern, grating_image): return CalibrationGenerator(diffraction_pattern=ring_pattern, grating_image=grating_image)
def calgen(request, calibration_library): return CalibrationGenerator(calibration_data=calibration_library)