Merge pull request #1515 from freqtrade/pyup/scheduled-update-2019-01-26
Scheduled daily dependency update on saturday
This commit is contained in:
commit
69ef743811
@ -38,12 +38,7 @@ def datesarray_to_datetimearray(dates: np.ndarray) -> np.ndarray:
|
||||
An numpy-array of datetimes
|
||||
:return: numpy-array of datetime
|
||||
"""
|
||||
times = []
|
||||
dates = dates.astype(datetime)
|
||||
for index in range(0, dates.size):
|
||||
date = dates[index].to_pydatetime()
|
||||
times.append(date)
|
||||
return np.array(times)
|
||||
return dates.dt.to_pydatetime()
|
||||
|
||||
|
||||
def common_datearray(dfs: Dict[str, DataFrame]) -> np.ndarray:
|
||||
|
@ -529,10 +529,11 @@ def test_backtest(default_conf, fee, mocker) -> None:
|
||||
{'pair': [pair, pair],
|
||||
'profit_percent': [0.0, 0.0],
|
||||
'profit_abs': [0.0, 0.0],
|
||||
'open_time': [Arrow(2018, 1, 29, 18, 40, 0).datetime,
|
||||
Arrow(2018, 1, 30, 3, 30, 0).datetime],
|
||||
'close_time': [Arrow(2018, 1, 29, 22, 35, 0).datetime,
|
||||
Arrow(2018, 1, 30, 4, 10, 0).datetime],
|
||||
'open_time': pd.to_datetime([Arrow(2018, 1, 29, 18, 40, 0).datetime,
|
||||
Arrow(2018, 1, 30, 3, 30, 0).datetime], utc=True
|
||||
),
|
||||
'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],
|
||||
'close_index': [125, 192],
|
||||
'trade_duration': [235, 40],
|
||||
|
@ -41,7 +41,7 @@ def test_common_datearray(default_conf) -> None:
|
||||
|
||||
assert dates.size == dataframes['UNITTEST/BTC']['date'].size
|
||||
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:
|
||||
|
@ -1,12 +1,12 @@
|
||||
ccxt==1.18.152
|
||||
SQLAlchemy==1.2.16
|
||||
SQLAlchemy==1.2.17
|
||||
python-telegram-bot==11.1.0
|
||||
arrow==0.13.0
|
||||
cachetools==3.0.0
|
||||
requests==2.21.0
|
||||
urllib3==1.24.1
|
||||
wrapt==1.11.1
|
||||
pandas==0.23.4
|
||||
pandas==0.24.0
|
||||
scikit-learn==0.20.2
|
||||
joblib==0.13.1
|
||||
scipy==1.2.0
|
||||
|
Loading…
Reference in New Issue
Block a user