Changeset 1136


Ignore:
Timestamp:
05/01/21 21:07:14 (19 months ago)
Author:
Maciej Komosinski
Message:

checkpoint_path is optional, let the program work without this value provided

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/evolalg/examples/niching_novelty.py

    r1132 r1136  
    7979
    8080def print_population_count(pop):
    81     print("Current:", len(pop))
     81    print("Current popsize:", len(pop))
    8282    return pop  # Each step must return a population
    8383
     
    230230    parsed_args = parseArguments()
    231231
    232     if os.path.exists(parsed_args.checkpoint_path):
     232    if parsed_args.checkpoint_path is not None and os.path.exists(parsed_args.checkpoint_path):
    233233        experiment = load_experiment(parsed_args.checkpoint_path)
    234234        FramsticksLib(parsed_args.path, parsed_args.lib,
Note: See TracChangeset for help on using the changeset viewer.