def load_camera_models_overrides(self): """Return camera models overrides data""" with open(self.__camera_models_overrides_file(), 'r') as fin: obj = json.load(fin) return io.cameras_from_json(obj)
def load_camera_models(self): """Return camera models data""" with io.open_rt(self._camera_models_file()) as fin: obj = json.load(fin) return io.cameras_from_json(obj)
def load_camera_models_overrides(self): """Load camera models overrides data.""" with io.open_rt(self._camera_models_overrides_file()) as fin: obj = json.load(fin) return io.cameras_from_json(obj)
def load_camera_models_overrides(self) -> Dict[str, pygeometry.Camera]: """Load camera models overrides data.""" with self.io_handler.open_rt( self._camera_models_overrides_file()) as fin: obj = json.load(fin) return io.cameras_from_json(obj)
def load_camera_models(self) -> Dict[str, pygeometry.Camera]: """Return camera models data""" with io.open_rt(self._camera_models_file()) as fin: obj = json.load(fin) return io.cameras_from_json(obj)