Merge pull request #1515 from freqtrade/pyup/scheduled-update-2019-01-26

Scheduled daily dependency update on saturday
This commit is contained in:
Misagh 2019-01-27 12:28:32 +01:00 committed by GitHub
commit 69ef743811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 13 deletions

View File

@ -38,12 +38,7 @@ def datesarray_to_datetimearray(dates: np.ndarray) -> np.ndarray:
An numpy-array of datetimes An numpy-array of datetimes
:return: numpy-array of datetime :return: numpy-array of datetime
""" """
times = [] return dates.dt.to_pydatetime()
dates = dates.astype(datetime)
for index in range(0, dates.size):
date = dates[index].to_pydatetime()
times.append(date)
return np.array(times)
def common_datearray(dfs: Dict[str, DataFrame]) -> np.ndarray: def common_datearray(dfs: Dict[str, DataFrame]) -> np.ndarray:

View File

@ -529,10 +529,11 @@ def test_backtest(default_conf, fee, mocker) -> None:
{'pair': [pair, pair], {'pair': [pair, pair],
'profit_percent': [0.0, 0.0], 'profit_percent': [0.0, 0.0],
'profit_abs': [0.0, 0.0], 'profit_abs': [0.0, 0.0],
'open_time': [Arrow(2018, 1, 29, 18, 40, 0).datetime, 'open_time': pd.to_datetime([Arrow(2018, 1, 29, 18, 40, 0).datetime,
Arrow(2018, 1, 30, 3, 30, 0).datetime], Arrow(2018, 1, 30, 3, 30, 0).datetime], utc=True
'close_time': [Arrow(2018, 1, 29, 22, 35, 0).datetime, ),
Arrow(2018, 1, 30, 4, 10, 0).datetime], 'close_time': pd.to_datetime([Arrow(2018, 1, 29, 22, 35, 0).datetime,
Arrow(2018, 1, 30, 4, 10, 0).datetime], utc=True),
'open_index': [78, 184], 'open_index': [78, 184],
'close_index': [125, 192], 'close_index': [125, 192],
'trade_duration': [235, 40], 'trade_duration': [235, 40],

View File

@ -41,7 +41,7 @@ def test_common_datearray(default_conf) -> None:
assert dates.size == dataframes['UNITTEST/BTC']['date'].size assert dates.size == dataframes['UNITTEST/BTC']['date'].size
assert dates[0] == dataframes['UNITTEST/BTC']['date'][0] assert dates[0] == dataframes['UNITTEST/BTC']['date'][0]
assert dates[-1] == dataframes['UNITTEST/BTC']['date'][-1] assert dates[-1] == dataframes['UNITTEST/BTC']['date'].iloc[-1]
def test_file_dump_json(mocker) -> None: def test_file_dump_json(mocker) -> None:

View File

@ -1,12 +1,12 @@
ccxt==1.18.152 ccxt==1.18.152
SQLAlchemy==1.2.16 SQLAlchemy==1.2.17
python-telegram-bot==11.1.0 python-telegram-bot==11.1.0
arrow==0.13.0 arrow==0.13.0
cachetools==3.0.0 cachetools==3.0.0
requests==2.21.0 requests==2.21.0
urllib3==1.24.1 urllib3==1.24.1
wrapt==1.11.1 wrapt==1.11.1
pandas==0.23.4 pandas==0.24.0
scikit-learn==0.20.2 scikit-learn==0.20.2
joblib==0.13.1 joblib==0.13.1
scipy==1.2.0 scipy==1.2.0