2121@dataclass
2222class PanSharpeningSettings (object ):
2323 channel_selection : str = "all"
24- spectra_multiplier : int = 1
24+ spectra_multiplier : float = 1
2525 pan_scale : float = 0.0
2626 pan_sharpening_interpolation_type : PanSharpeningInterpolationType = (
2727 PanSharpeningInterpolationType .Linear
@@ -36,7 +36,7 @@ def _get_internal(self) -> cuvis_il.cuvis_pansharpening_settings_t:
3636 ps = cuvis_il .cuvis_pansharpening_settings_t ()
3737 ps .channel_selection = self .channel_selection
3838 ps .spectra_multiplier = self .spectra_multiplier
39- ps .pan_scale = float ( self .pan_scale )
39+ ps .pan_scale = self .pan_scale
4040 ps .pan_interpolation_type = internal .__CuvisPanSharpeningInterpolationType__ [
4141 self .pan_sharpening_interpolation_type
4242 ]
@@ -327,6 +327,7 @@ class SaveArgs(GeneralExportSettings):
327327 merge_mode : SessionMergeMode = SessionMergeMode .Default
328328 allow_fragmentation : bool = False
329329 allow_drop : bool = False
330+ allow_overwrite : bool = False
330331 allow_session_file : bool = True
331332 allow_info_file : bool = True
332333 operation_mode : OperationMode = OperationMode .Software
@@ -341,6 +342,7 @@ def _get_internal(self):
341342 sa = cuvis_il .cuvis_save_args_t ()
342343 sa .merge_mode = internal .__CuvisSessionMergeMode__ [self .merge_mode ]
343344 sa .allow_drop = int (self .allow_drop )
345+ sa .allow_overwrite = int (self .allow_overwrite )
344346 sa .allow_session_file = int (self .allow_session_file )
345347 sa .allow_info_file = int (self .allow_info_file )
346348 sa .operation_mode = internal .__CuvisOperationMode__ [self .operation_mode ]
0 commit comments