ensure full new pairlist is in the queue

This commit is contained in:
robcaulk 2022-09-18 17:08:07 +02:00
parent eaa43337d2
commit 470d5d8405

View File

@ -707,6 +707,10 @@ class IFreqaiModel(ABC):
for pair in pair_dict_sorted:
if pair[0] in current_pairlist:
best_queue.appendleft(pair[0])
for pair in current_pairlist:
if pair not in best_queue:
best_queue.appendleft(pair)
logger.info('Set existing queue from trained timestamps.')
return best_queue