Exemplo n.º 1
0
    def __init__(self, calibmonitor, calibtubes):
        """
        Parameters:
            calibmonitor: calibmonitor.CalibMonitor object
                the CalibMonitor object is used to present the stimuli on the
                monitor and to measure the corresponding values

            calibtubes: calibtubes.CalibTubes object which is calibrated
                the CalibTubes object is used to set the voltages of the
                tubes and to measure the corresponding values

        """
        self.calibmonitor = calibmonitor
        self.calibtubes = calibtubes
        if not calibtubes.is_calibrated:
            print("""STOP: Please calibrate tubes first or initialize
            Calibrate object with CalibTubes where an old parameter file
            is loaded!""")
            # TODO insert reasonable exception here
        self.knobs = DevKnobs()
        self.set_manually_plot = SetTubesManualPlot(self.calibtubes,
                                                    self.knobs)
        self.set_manually_vision = SetTubesManualVision(
            self.calibtubes, self.knobs, self.calibmonitor)