Don't use "r+" memmap, but "r2

This commit is contained in:
Matthias 2021-05-17 21:05:48 +02:00
parent 6aa574fa2b
commit 36eba0f110

View File

@ -271,7 +271,7 @@ class Hyperopt:
self.backtesting.strategy.trailing_only_offset_is_reached = \
d['trailing_only_offset_is_reached']
processed = load(self.data_pickle_file, mmap_mode='r+')
processed = load(self.data_pickle_file, mmap_mode='r')
bt_results = self.backtesting.backtest(
processed=processed,