def ingest_one(self, image):

        with self.lock:
            self.images.append(image)
            self.ingest_count += 1
            count = self.ingest_count

            self.update_progress(float(count)/self.total_files)

            if count == self.total_files:
                self.end_progress()

                self.update_status("Inserting into mosaic...")
                images, self.images = self.images, []
                self.fv.gui_do(self._inline, images)

                total_elapsed = time.time() - self.start_time
                msg = "Done. Total=%.2f Process=%.2f (sec)" % (
                    total_elapsed, self.process_elapsed)
                self.update_status(msg)
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/plugins/Mosaic.py/Mosaic.ingest_one/original