Ignore:
Timestamp:
09/25/21 01:02:06 (3 years ago)
Author:
Maciej Komosinski
Message:

Added support for loading multiple .sim files where each can overwrite selected settings

File:
1 edited

Legend:

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

    r1146 r1149  
    6363    parser.add_argument('-genformat', required=False, default="1",
    6464                        help='Genetic format for the demo run, for example 4, 9, or B. If not given, f1 is assumed.')
    65     parser.add_argument('-sim', required=False, default="eval-allcriteria.sim", help="Name of the .sim file with all parameter values")
     65    parser.add_argument('-sim', required=False, default="eval-allcriteria.sim", help="Name of the .sim file with all parameter values. If you want to provide more files, separate them with a semicolon ';'.")
    6666    parser.add_argument('-fit', required=False, default=Fitness.raw, type=Fitness,
    6767                        help=' Fitness criteria, default: raw', choices=list(Fitness))
     
    166166    parsed_args = parseArguments()
    167167    frams_lib = FramsticksLib(parsed_args.path, parsed_args.lib,
    168                           parsed_args.sim)
     168                          parsed_args.sim.split(";"))
    169169    # Steps for generating first population
    170170    init_stages = [
     
    332332    if parsed_args.checkpoint_path is not None and os.path.exists(parsed_args.checkpoint_path):
    333333        experiment = load_experiment(parsed_args.checkpoint_path)
    334         FramsticksLib(parsed_args.path, parsed_args.lib,
    335                       parsed_args.sim)
    336334    else:
    337335        experiment = create_experiment()
    338336        experiment.init()  # init is mandatory
    339 
    340337
    341338    experiment.run(parsed_args.generations)
Note: See TracChangeset for help on using the changeset viewer.