Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
8 changes: 4 additions & 4 deletions cuvis/FileWriteSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
]
Expand Down Expand Up @@ -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
Expand All @@ -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]
Expand All @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion cuvis/cuvis_aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
Loading