more reformatting

This commit is contained in:
2024-07-01 16:57:36 +02:00
parent 5397246f34
commit 6879a8b551
3 changed files with 15 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ def sci_not(v, err, rnd=1, out=str):
else:
output[0] += r" $\pm$ {0}".format(round(err * 10**power, rnd))
output.append(round(err * 10**power, rnd))
if out == str:
if out is str:
return output[0] + r")e{0}".format(-power)
else:
return *output[1:], -power