예제 #1
0
파일: camera.py 프로젝트: paalge/pysces-asi
    def download_configs(self):
        task = ThreadTask(self._download_configs)

        # submit task
        self.commit_task(task)

        # return result when task has been completed
        return task.result()
예제 #2
0
파일: camera.py 프로젝트: paalge/pysces-asi
    def is_connected(self):
        task = ThreadTask(self._is_connected)

        # submit task
        self.commit_task(task)

        # return result when task has been completed
        return task.result()
예제 #3
0
파일: camera.py 프로젝트: paalge/pysces-asi
    def clear_camera(self):
        # create task
        task = ThreadTask(self._clear_camera)

        # submit task
        self.commit_task(task)

        # return result when task has been completed
        return task.result()
예제 #4
0
파일: camera.py 프로젝트: paalge/pysces-asi
    def capture_images(self):
        # create task
        task = ThreadTask(self._capture_images)

        # submit task
        self.commit_task(task)

        # return result when task has been completed
        return task.result()
예제 #5
0
파일: camera.py 프로젝트: paalge/pysces-asi
    def set_capture_mode(self, capture_mode):
        # create task
        task = ThreadTask(self._set_capture_mode, capture_mode)

        # submit task
        self.commit_task(task)

        # return result when task has been completed
        return task.result()
예제 #6
0
파일: camera.py 프로젝트: paalge/pysces-asi
    def get_camera_configs(self):
        """
        Returns the camera configs stored in the camera manager - these should be the up-to-date
        configs.
        """

        task = ThreadTask(self.camera_configs.copy)

        # submit task
        self.commit_task(task)

        # return result when task has been completed
        return task.result()