We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bacd72b + f46dd8f commit 9472655Copy full SHA for 9472655
src/nxmx/__init__.py
@@ -917,7 +917,7 @@ def underload_value(self) -> int | None:
917
to the underload_value.
918
"""
919
if "underload_value" in self._handle:
920
- return int(self._handle["underload_value"][()])
+ return int(self._handle["underload_value"][()].item())
921
return None
922
923
@cached_property
@@ -932,7 +932,7 @@ def saturation_value(self) -> int | None:
932
933
if "saturation_value" in self._handle:
934
try:
935
- return int(self._handle["saturation_value"][()])
+ return int(self._handle["saturation_value"][()].item())
936
except TypeError as e:
937
logger.warning(f"Error extracting {self.path}/saturation_value: {e}")
938
0 commit comments