Skip to content

Commit fa7190b

Browse files
committed
introduce third decimal place truncating
1 parent bb0cf23 commit fa7190b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/src/opentrons/protocol_engine/state/modules.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,10 @@ def convert_absorbance_reader_data_points(
12681268
row = chr(ord("A") + i // 12) # Convert index to row (A-H)
12691269
col = (i % 12) + 1 # Convert index to column (1-12)
12701270
well_key = f"{row}{col}"
1271-
well_map[well_key] = value
1271+
truncated_value = float(
1272+
"{:.5}".format(str(value))
1273+
) # Truncate the returned value to the third decimal place
1274+
well_map[well_key] = truncated_value
12721275
return well_map
12731276
else:
12741277
raise ValueError(

0 commit comments

Comments
 (0)