From d700ae08b3143804b7b41b093baa73c0a3dd2508 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Fri, 13 Dec 2019 23:10:48 +0000 Subject: [PATCH] - fixed fetch git-svn-id: http://moon:8086/svn/projects/Stock@312 fda53097-d464-4ada-af97-ba876c37ca34 --- pandas_eval.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pandas_eval.py b/pandas_eval.py index e4f3827..3118844 100644 --- a/pandas_eval.py +++ b/pandas_eval.py @@ -20,9 +20,9 @@ import os # https://ntguardian.wordpress.com/2016/09/19/introduction-stock-market-data-python-1 key = '0UO7Z2MVZ2YSQSVE' -thresh_macd = 1.0 +thresh_macd = 0.5 show_range_days = 20 -show_title = ['SIE.DE'] +show_title = [] k_euro = 1 / 1.11 N_poly = 7 @@ -188,8 +188,7 @@ class Symbol(object): fetch = False today = dt.date.today() try: - hdf = pd.HDFStore(filename, 'r') - hdf.close() + hdf = pd.HDFStore(filename) except: fetch = True