Skip to content

Commit 38f75fb

Browse files
committed
Round floats from controller to 2 digits
1 parent 13a7352 commit 38f75fb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ihcsdk/ihcclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ def __get_value(resource_value):
355355
"WSIntegerValue": lambda v: int(
356356
v.find("./ns2:integer", IHCSoapClient.ihcns).text
357357
),
358-
"WSFloatingPointValue": lambda v: float(
359-
v.find("./ns2:floatingPointValue", IHCSoapClient.ihcns).text
358+
"WSFloatingPointValue": lambda v: round(
359+
float( v.find("./ns2:floatingPointValue", IHCSoapClient.ihcns).text),2
360360
),
361361
"WSEnumValue": lambda v: v.find("./ns2:enumName", IHCSoapClient.ihcns).text,
362362
"WSTimerValue": lambda v: int(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="ihcsdk",
8-
version="2.8.4",
8+
version="2.8.5",
99
description="IHC Python SDK",
1010
long_description=(
1111
"SDK for connection to the LK IHC Controller. "

0 commit comments

Comments
 (0)