clean up code remnants

This commit is contained in:
robcaulk 2022-08-17 15:22:48 +02:00
parent 0c34104e45
commit 5155afb4e7
2 changed files with 2 additions and 8 deletions

View File

@ -816,7 +816,7 @@ class FreqaiDataKitchen:
return False return False
def check_if_new_training_required( def check_if_new_training_required(
self, trained_timestamp: int = 0 self, trained_timestamp: int
) -> Tuple[bool, TimeRange, TimeRange]: ) -> Tuple[bool, TimeRange, TimeRange]:
time = datetime.datetime.now(tz=datetime.timezone.utc).timestamp() time = datetime.datetime.now(tz=datetime.timezone.utc).timestamp()

View File

@ -276,14 +276,8 @@ class IFreqaiModel(ABC):
) )
dk.set_paths(metadata["pair"], new_trained_timerange.stopts) dk.set_paths(metadata["pair"], new_trained_timerange.stopts)
# download candle history if it is not already in memory # load candle history into memory if it is not yet.
if not self.dd.historic_data: if not self.dd.historic_data:
# logger.info(
# "Downloading all training data for all pairs in whitelist and "
# "corr_pairlist, this may take a while if you do not have the "
# "data saved"
# )
# dk.download_all_data_for_training(data_load_timerange, strategy.dp)
self.dd.load_all_pair_histories(data_load_timerange, dk) self.dd.load_all_pair_histories(data_load_timerange, dk)
if not self.scanning: if not self.scanning: