check and fix formating code with ruff

This commit is contained in:
Aleksey Savin 2024-04-18 09:27:30 +00:00
parent c537c43dd0
commit a72587576e

View File

@ -116,7 +116,8 @@ class IFreqaiModel(ABC):
record_params(config, self.full_path) record_params(config, self.full_path)
self.new_feature_selector = self.config.get('freqai', {}).get('warn_exceptions_on_backtest_only', False) self.new_feature_selector = self.config.get('freqai', {}) \
.get('warn_exceptions_on_backtest_only', False)
def __getstate__(self): def __getstate__(self):
""" """
@ -359,7 +360,8 @@ class IFreqaiModel(ABC):
if self.new_feature_selector: if self.new_feature_selector:
logger.warning( logger.warning(
"Train failed. Try to train on next pair." if self.new_feature_selector else "Train failed. Try to train on next pair." \
if self.new_feature_selector else
"Train failed. Raise error, fix data issue and try again." "Train failed. Raise error, fix data issue and try again."
) )
self.tb_logger.close() self.tb_logger.close()