Skip to content

Commit

Permalink
Change variable name (pylint did not like it)
Browse files Browse the repository at this point in the history
  • Loading branch information
kif committed Sep 12, 2024
1 parent 1d918b3 commit 01adae2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pyFAI/utils/stringutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def to_eng(value, fmt=None, space=""):
ffmt = "{value:%s}{space}{pfix}"%fmt
return ffmt.format(value=value, space=space, pfix=pfix, fmt=fmt)
else:
str = f"{value:f}"
string = f"{value:f}"
if "." in str:
str = str.rstrip("0")
str = str.rstrip(".")
return str+space+pfix
string = string.rstrip("0")
string = string.rstrip(".")
return string + space + pfix

0 comments on commit 01adae2

Please sign in to comment.