Changeset 1094


Ignore:
Timestamp:
02/25/21 21:01:59 (4 years ago)
Author:
Maciej Komosinski
Message:

Same as r1091 but for evolution: allowed to override settings of the simulation using a file with the file name provided as an argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksEvolution.py

    r1080 r1094  
    7373        parser.add_argument('-path', type=ensureDir, required=True, help='Path to Framsticks CLI without trailing slash.')
    7474        parser.add_argument('-exe', required=False, help='Executable name. If not given, "frams.exe" or "frams.linux" is assumed.')
     75        parser.add_argument('-simsettings', required=False, help='The name of the .sim file with settings for evaluation, mutation, crossover, and similarity estimation. If not given, "eval-allcriteria.sim" is assumed by default. Must be compatible with the "standard-eval" expdef.')
    7576        parser.add_argument('-genformat', required=False, help='Genetic format for the demo run, for example 4, 9, or B. If not given, f1 is assumed.')
    7677        return parser.parse_args()
     
    9091        FramsticksLib.DETERMINISTIC = False  # must be set before FramsticksLib() constructor call
    9192        parsed_args = parseArguments()
    92         framsLib = FramsticksLib(parsed_args.path, parsed_args.exe)
     93        framsLib = FramsticksLib(parsed_args.path, parsed_args.exe, parsed_args.simsettings)
    9394
    9495        toolbox = prepareToolbox(framsLib, '1' if parsed_args.genformat is None else parsed_args.genformat)
Note: See TracChangeset for help on using the changeset viewer.