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/a/HaeffnerLabLattice-HEAD/scripts/experiments/Crystallization/crystallization.py   HaeffnerLabLattice(Download)
            self.get_ion_signal = self.get_pmt_counts
        print 'getting camera counts'
        self.initial_signal = self.get_ion_signal()
 
    def get_camera_counts(self):
        durations = np.linspace(p.min_duration['s'], p.max_duration['s'], attempts)
        for duration in durations:
            counts = self.get_ion_signal()
            if counts >= self.threshold * self.initial_signal:
                return [initially_melted, True]