Skip to content

Commit 812cc2a

Browse files
committed
use more sensible defaults
1 parent 67584f1 commit 812cc2a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

run_fetch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99

1010
def main():
11-
tickers, periods, _ = util.parse_command_line(default_periods=poloniex.AVAILABLE_PERIODS)
11+
tickers, periods, _ = util.parse_command_line(default_periods=poloniex.AVAILABLE_PERIODS,
12+
default_targets=[])
1213
poloniex.update_selected(tickers, periods)
1314

1415

run_train.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def iterate_xgb(job_info, job_runner, iterations=10, k_lim=21):
9393

9494

9595
def main():
96-
tickers, periods, targets = util.parse_command_line()
96+
tickers, periods, targets = util.parse_command_line(default_periods=['day'],
97+
default_targets=['high'])
9798
while True:
9899
for ticker in tickers:
99100
for period in periods:

util/cmdline.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from logging import info, warn
1010

1111

12-
DEFAULT_TICKERS = ['BTC_ETH', 'BTC_LTC', 'BTC_XRP', 'BTC_DGB', 'BTC_STR', 'BTC_ZEC']
13-
DEFAULT_PERIODS = ['4h', 'day']
12+
DEFAULT_TICKERS = ['BTC_ETH', 'BTC_LTC', 'BTC_XRP', 'BTC_ZEC']
13+
DEFAULT_PERIODS = ['day']
1414
DEFAULT_TARGETS = ['high']
1515

1616

@@ -57,4 +57,6 @@ def parse_option(name, options, valid, default):
5757

5858

5959
def pretty_list(values):
60+
if not values:
61+
return '<empty list>'
6062
return ', '.join(['"%s"' % value for value in values])

0 commit comments

Comments
 (0)