diff --git a/README.md b/README.md index bb65f79..ea9ad15 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ source code page. ## Installation +>**Cuvis C SDK**\ +>Download and install the lastest Cuvis C SDK.\ +>Link: [Cuvis C SDK](https://cloud.cubert-gmbh.de/s/qpxkyWkycrmBK9m) + ### Prerequisites First, you need to install the Cuvis C SDK from [here](https://cloud.cubert-gmbh.de/s/qpxkyWkycrmBK9m). diff --git a/cuvis/FileWriteSettings.py b/cuvis/FileWriteSettings.py index 6246c8a..e0cd5ce 100644 --- a/cuvis/FileWriteSettings.py +++ b/cuvis/FileWriteSettings.py @@ -21,7 +21,7 @@ @dataclass class PanSharpeningSettings(object): channel_selection: str = "all" - spectra_multiplier: int = 1 + spectra_multiplier: float = 1 pan_scale: float = 0.0 pan_sharpening_interpolation_type: PanSharpeningInterpolationType = ( PanSharpeningInterpolationType.Linear @@ -36,7 +36,7 @@ def _get_internal(self) -> cuvis_il.cuvis_pansharpening_settings_t: ps = cuvis_il.cuvis_pansharpening_settings_t() ps.channel_selection = self.channel_selection ps.spectra_multiplier = self.spectra_multiplier - ps.pan_scale = float(self.pan_scale) + ps.pan_scale = self.pan_scale ps.pan_interpolation_type = internal.__CuvisPanSharpeningInterpolationType__[ self.pan_sharpening_interpolation_type ] @@ -325,8 +325,8 @@ def _from_internal( @dataclass class SaveArgs(GeneralExportSettings): merge_mode: SessionMergeMode = SessionMergeMode.Default - allow_fragmentation: bool = False allow_drop: bool = False + allow_overwrite: bool = False allow_session_file: bool = True allow_info_file: bool = True operation_mode: OperationMode = OperationMode.Software @@ -341,6 +341,7 @@ def _get_internal(self): sa = cuvis_il.cuvis_save_args_t() sa.merge_mode = internal.__CuvisSessionMergeMode__[self.merge_mode] sa.allow_drop = int(self.allow_drop) + sa.allow_overwrite = int(self.allow_overwrite) sa.allow_session_file = int(self.allow_session_file) sa.allow_info_file = int(self.allow_info_file) sa.operation_mode = internal.__CuvisOperationMode__[self.operation_mode] @@ -362,7 +363,6 @@ def _from_internal( **ge.__dict__, allow_overwrite=bool(sa.allow_overwrite), merge_mode=internal.__SessionMergeMode__[sa.merge_mode], - allow_fragmentation=bool(sa.allow_fragmentation), allow_drop=bool(sa.allow_drop), allow_session_file=bool(sa.allow_session_file), allow_info_file=bool(sa.allow_info_file), diff --git a/cuvis/cuvis_aux.py b/cuvis/cuvis_aux.py index 4fd77e6..1f71a1b 100644 --- a/cuvis/cuvis_aux.py +++ b/cuvis/cuvis_aux.py @@ -113,7 +113,7 @@ def _from_internal(cls, gps): @dataclass(frozen=True) class SensorInfo(object): averages: int - temperature: int + temperature: float gain: float readout_time: datetime.datetime width: int diff --git a/pyproject.toml b/pyproject.toml index f338423..5855dae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "cuvis" -version = "3.5.0.2" +version = "3.5.1.0" description = "CUVIS Python SDK." readme = "README.md" requires-python = ">=3.9" diff --git a/tests/test_general.py b/tests/test_general.py index ed3b2bb..549070b 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -30,7 +30,7 @@ def test_wrapper_version(sdk_initialized): """Test wrapper version retrieval.""" version = cuvis.General.wrapper_version() assert isinstance(version, str) - assert "3.5.0" in version # Current wrapper version + assert "3.5.1" in version # Current wrapper version # def test_sdk_initialization_and_shutdown():