Beispiel #1
0
 def clean_backtest_states(self):
     directory_to_use = get_directory_store_backtests()
     self.data.log.msg(
         "Deleting old .pck and .yaml backtest state files in directory %s"
         % directory_to_use
     )
     delete_old_files_with_extension_in_pathname(
         directory_to_use, days_old=5, extension=".pck"
     )
     delete_old_files_with_extension_in_pathname(
         directory_to_use, days_old=5, extension=".yaml"
     )
def get_statefile_directory():
    ans = get_directory_store_backtests()
    return get_resolved_pathname(ans)