There was an error while loading. Please reload this page.
1 parent 07e2906 commit 5996786Copy full SHA for 5996786
1 file changed
backtesting/lib.py
@@ -539,8 +539,8 @@ def __init__(self,
539
self.__data[col] = self.__data[col] * self._fractional_unit
540
for col in ('Volume',):
541
self.__data[col] = self.__data[col] / self._fractional_unit
542
- with warnings.catch_warnings(record=True):
543
- warnings.filterwarnings(action='ignore', message='frac')
+ with warnings.catch_warnings():
+ warnings.filterwarnings(action='ignore', message='.*?fraction')
544
super().__init__(data, *args, **kwargs)
545
546
def run(self, **kwargs) -> pd.Series:
0 commit comments