Exemplo n.º 1
0
 def __scan(self, settings, index, pool):
     samples = settings.dwell * SAMPLE_RATE
     samples = next_2_to_pow(int(samples))
     threadScan = ThreadScan(self.queue, None, settings, index, samples, False)
     while threadScan.isAlive() or self.steps > 0:
         if not self.queue.empty():
             self.__process_event(self.queue, pool)
     print ""
Exemplo n.º 2
0
 def scan(self, settings, index, pool):
     queue = Queue.Queue()
     samples = settings.dwell * SAMPLE_RATE
     samples = next_2_to_pow(int(samples))
     threadScan = ThreadScan(queue, settings, index, samples, False)
     while threadScan.isAlive():
         if not queue.empty():
             self.process_event(queue, pool)
     print ""
Exemplo n.º 3
0
 def __scan(self, sweeps, settings, index, pool):
     samples = settings.dwell * SAMPLE_RATE
     samples = next_2_to_pow(int(samples))
     for sweep in range(0, sweeps):
         print '\nSweep {}:'.format(sweep)
         threadScan = ThreadScan(self.queue, None, settings, index, samples,
                                 False)
         while threadScan.isAlive() or self.steps > 0:
             if not self.queue.empty():
                 self.__process_event(self.queue, pool)
         print ""
     print ""
Exemplo n.º 4
0
 def __scan(self, sweeps, settings, index, pool):
     samples = settings.dwell * SAMPLE_RATE
     samples = next_2_to_pow(int(samples))
     for sweep in range(0, sweeps):
         print '\nSweep {}:'.format(sweep)
         threadScan = ThreadScan(self.queue, None, settings, index, samples,
                                 False)
         while threadScan.isAlive() or self.steps > 0:
             if not self.queue.empty():
                 self.__process_event(self.queue, pool)
         print ""
     print ""
Exemplo n.º 5
0
 def __scan(self, sweeps, settings, index, pool):
     samples = settings.dwell * SAMPLE_RATE
     samples = next_2_to_pow(int(samples))
     for sweep in range(0, sweeps):
         print '\nSweep {}:'.format(sweep + 1)
         threadScan = ThreadScan(self.queueNotify, self.queueScan, None,
                                 settings, index, samples, False)
         while threadScan.isAlive() or self.steps > 0:
             if not self.queueNotify.empty():
                 self.__process_event(self.queueNotify, pool)
         if self.settings.scanDelay > 0:
             print '\nDelaying {}s'.format(self.settings.scanDelay)
             time.sleep(self.settings.scanDelay)
         print ""
     print ""
Exemplo n.º 6
0
    def __scan(self, sweeps, settings, index, pool):
        samples = settings.dwell * SAMPLE_RATE
        samples = next_2_to_pow(int(samples))

        for sweep in range(0, sweeps):
            print '\nSweep {}:'.format(sweep + 1)
            threadScan = ThreadScan(self.queueNotify, self.queueScan, None,
                                    settings, index, samples, False)
            while threadScan.isAlive() or self.steps > 0:
                if not self.queueNotify.empty():
                    self.__process_event(self.queueNotify, pool)
                if not self.queueLocation.empty():
                    self.__process_event(self.queueLocation, pool)
            if self.settings.scanDelay > 0 and sweep < sweeps - 1:
                print '\nDelaying {}s'.format(self.settings.scanDelay)
                time.sleep(self.settings.scanDelay)
            print ""
        print ""