From 5372e299c002e446d5b99d4902f5a689d18975e6 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Mon, 9 Jan 2023 12:33:27 +0900 Subject: [PATCH] fix typo --- freqtrade/data/converter.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/freqtrade/data/converter.py b/freqtrade/data/converter.py index 03393905d..e778c99d7 100644 --- a/freqtrade/data/converter.py +++ b/freqtrade/data/converter.py @@ -195,14 +195,14 @@ def trim_dataframes(preprocessed: Dict[str, DataFrame], timerange, """ processed: Dict[str, DataFrame] = {} for pair, df in preprocessed.items(): - trimed_df = trim_dataframe(df, timerange, startup_candles=startup_candles) - if not trimed_df.empty: - # start_mem = trimed_df.memory_usage().sum() / 1024**2 + trimmed_df = trim_dataframe(df, timerange, startup_candles=startup_candles) + if not trimmed_df.empty: + # start_mem = trimmed_df.memory_usage().sum() / 1024**2 # logger.info(f"Memory usage of df for {pair} before reduced is {start_mem:.2f} MB") - trimed_df = reduce_mem_usage(pair, trimed_df) - # end_mem = trimed_df.memory_usage().sum() / 1024**2 + trimmed_df = reduce_mem_usage(pair, trimmed_df) + # end_mem = trimmed_df.memory_usage().sum() / 1024**2 # logger.info(f"Memory usage of df for {pair} after reduced is {end_mem:.2f} MB") - processed[pair] = trimed_df + processed[pair] = trimmed_df else: logger.warning(f'{pair} has no data left after adjusting for startup candles, ' f'skipping.')