Skip to content

Commit

Permalink
Fix double minus sign
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed May 20, 2020
1 parent 4c3768f commit ad7b699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zfit/minimizers/fitresult.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2020 zfit
import contextlib
import itertools
import math
import warnings
from collections import OrderedDict
from typing import Dict, Union, Callable, Optional, Tuple
Expand Down Expand Up @@ -458,7 +459,7 @@ def format_value(value, highprec=True):
upper = value['upper']
lower_sign = f"{np.sign(lower): >+}"[0]
upper_sign = f"{np.sign(upper): >+}"[0]
lower, upper = f"{lower: >6.2g}"[1:], f"{upper: >6.2g}"
lower, upper = f"{np.abs(lower): >6.2g}", f"{upper: >6.2g}"
lower = lower_sign + " " * (7 - len(lower)) + lower
upper = upper_sign + " " * (7 - len(upper)) + upper
# lower += " t" * (11 - len(lower))
Expand Down

0 comments on commit ad7b699

Please sign in to comment.