Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/h/e/Helmholtz-0.2.0/helmholtz/analysis/tools/examples/analysis_test.py   Helmholtz(Download)
def set_stimulus(stimulus_url,scale_factor,max_luminance,background_luminance):
    global frame_duration, images, orientations, tmpdir, stimulus_id
    logging.info("Setting stimulus from %s" % stimulus_url)
    logging.info("Scale factor: %g pixels/degree" % scale_factor)
    tmpdir, image_sequence, frame_duration = fkbtools.getStimulus(stimulus_url)
    def execute(self) :
        logging.info("Setting stimulus from %s" % self.stimulus_url.potential)
        logging.info("Scale factor: %g pixels/degree" % self.scale_factor.potential)
        self.tmpdir.potential, image_sequence, self.frame_duration.potential = fkbtools.getStimulus(self.stimulus_url.potential)
        logging.info("Frame duration = %g ms" % self.frame_duration.potential)