Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
 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)
Exemple #6
0
 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)
Exemple #7
0
 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)
Exemple #8
0
 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)