Skip to content

Commit f6c49bf

Browse files
Fix pint values to 4 significant digits
1 parent 9086918 commit f6c49bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mats/tkwidgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _update(self):
216216
value_str = f"{value:.4g}"
217217
else:
218218
try:
219-
value_str = f"{value.magnitude}"
219+
value_str = f"{value.magnitude:.4g}"
220220
except AttributeError:
221221
value_str = f"{value}"
222222

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mats"
3-
version = "0.74.9"
3+
version = "0.74.10"
44
description = "Manufacturing Automated Test System, a framework for building device testing quickly and consistently"
55
authors = [
66
{name = "Jason R. Jones", email = "slightlynybbled@gmail.com"},

0 commit comments

Comments
 (0)