summaryrefslogtreecommitdiff
path: root/pint/facets/measurement/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'pint/facets/measurement/objects.py')
-rw-r--r--pint/facets/measurement/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pint/facets/measurement/objects.py b/pint/facets/measurement/objects.py
index 6fa860c..aaf5750 100644
--- a/pint/facets/measurement/objects.py
+++ b/pint/facets/measurement/objects.py
@@ -133,7 +133,7 @@ class Measurement(PlainQuantity):
# scientific notation ('e' or 'E' and sometimes 'g' or 'G').
mstr = mstr.replace("(", "").replace(")", " ")
ustr = siunitx_format_unit(self.units._units, self._REGISTRY)
- return r"\SI{}{{{}}}{{{}}}".format(opts, mstr, ustr)
+ return rf"\SI{opts}{{{mstr}}}{{{ustr}}}"
# standard cases
if "L" in spec: