From c6fe45371c71041751a898186c7bb38840430efd Mon Sep 17 00:00:00 2001 From: Victor Grau Serrat Date: Mon, 27 Nov 2017 13:20:00 -0700 Subject: [PATCH 1/2] ENH: removed default for --capital_base in backtesting --- catalyst/__main__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/catalyst/__main__.py b/catalyst/__main__.py index 86e49ca2..feddb5b8 100644 --- a/catalyst/__main__.py +++ b/catalyst/__main__.py @@ -139,7 +139,6 @@ def ipython_only(option): @click.option( '--capital-base', type=float, - default=10e6, show_default=True, help='The starting capital for the simulation.', ) From 12d5915c8ee3503770c387b0b6d623e53aef4915 Mon Sep 17 00:00:00 2001 From: Victor Grau Serrat Date: Mon, 27 Nov 2017 15:02:13 -0700 Subject: [PATCH 2/2] ENH: DEBUG level can be easily overriden from the local environment --- catalyst/constants.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/catalyst/constants.py b/catalyst/constants.py index bbdae343..1793257e 100644 --- a/catalyst/constants.py +++ b/catalyst/constants.py @@ -1,8 +1,13 @@ # -*- coding: utf-8 -*- +import os import logbook -LOG_LEVEL = logbook.DEBUG +''' You can override the LOG level from your environment. + For example, if you want to see the DEBUG messages, run: + $ export CATALYST_LOG_LEVEL=10 +''' +LOG_LEVEL = int(os.environ.get('CATALYST_LOG_LEVEL', logbook.INFO)) DATE_TIME_FORMAT = '%Y-%m-%d %H:%M'