From cc52bf5b16015543a8220bc7d573483539723a16 Mon Sep 17 00:00:00 2001 From: Theodore Aptekarev Date: Fri, 6 May 2022 01:06:59 +0300 Subject: [PATCH] Stop treating loss as a small value (#1770) --- openbb_terminal/helper_funcs.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/helper_funcs.py b/openbb_terminal/helper_funcs.py index 7ad7ecb9e51..a0276be5503 100644 --- a/openbb_terminal/helper_funcs.py +++ b/openbb_terminal/helper_funcs.py @@ -192,7 +192,7 @@ def print_rich_table( row += [ str(x) if not isinstance(x, float) - else (f"{x:{floatfmt[idx]}}" if x >= 0.01 else f"{x:.2e}") + else (f"{x:{floatfmt[idx]}}" if abs(x) >= 0.001 else f"{x:.2e}") for idx, x in enumerate(values) ] table.add_row(*row) diff --git a/pyproject.toml b/pyproject.toml index b81f7f032fd..5005c900a60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ # https://python-poetry.org/docs/dependency-specification/ [tool.poetry] name = "OpenBBTerminal" -version = "1.2.0" +version = "1.2.1" description = "" authors = ["Didier Rodrigues Lopes"] packages = [