From 10662ed1e65fec42ef5a24ec0da1d974bc5b656f Mon Sep 17 00:00:00 2001 From: Kevin Johnson Date: Fri, 21 May 2021 10:01:06 -0700 Subject: [PATCH] TST strategy results update --- README.md | 2 +- setup.py | 2 +- tests/test_strategy.py | 12 +++++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0cb3fad..7fdc572 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ $ pip install pandas_ta Latest Version -------------- -Best choice! Version: *0.2.80* +Best choice! Version: *0.2.81* ```sh $ pip install -U git+https://github.com/twopirllc/pandas-ta ``` diff --git a/setup.py b/setup.py index 1aedf2a..e226934 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( "pandas_ta.volatility", "pandas_ta.volume" ], - version=".".join(("0", "2", "80b")), + version=".".join(("0", "2", "81b")), description=long_description, long_description=long_description, author="Kevin Johnson", diff --git a/tests/test_strategy.py b/tests/test_strategy.py index d617472..54166a0 100644 --- a/tests/test_strategy.py +++ b/tests/test_strategy.py @@ -36,9 +36,19 @@ class TestStrategyMethods(TestCase): if speed_table: cls.speed_test.to_csv("tests/speed_test.csv") if timed: + tca = cls.speed_test['Columns'].sum() + tcs = cls.speed_test['Seconds'].sum() + cps = f"[i] Total Columns / Second for All Tests: { tca / tcs:.5f} " + print("=" * len(cps)) + print(cls.speed_test) print(f"[i] Cores: {cls.data.ta.cores}") print(f"[i] Total Datapoints: {cls.data.shape[0]}") - print(cls.speed_test) + print(f"[i] Total Columns added: {tca}") + print(f"[i] Total Seconds for All Tests: {tcs:.5f}") + print(cps) + print("=" * len(cps)) + # tmp = concat([cls.speed_test, cls.speed_test["Columns"].sum(), cls.speed_test["Seconds"].sum()]) + # print(tmp) del cls.data def setUp(self):