code: def set_duration(self, dur):
          
          # this may be set at any time, and is not checked before run, so set
          # all stim components
          for comp in self.stim_components:
              comp.setDuration(dur)
          self.reftone.setDuration(dur)
docs: See :meth:`AbstractCalibrationRunner<sparkle.run.calibration_runner.AbstractCalibrationRunner.set_duration>`