Changeset 1293


Ignore:
Timestamp:
02/21/24 16:51:42 (2 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

Location:
framspy
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksEvolution.py

    r1205 r1293  
    3232                default_evaluation_data = evaluation_data[""]
    3333                fitness = [default_evaluation_data[crit] for crit in OPTIMIZATION_CRITERIA]
    34         except (KeyError, TypeError) as e:  # the evaluation may have failed for an invalid genotype (such as X[@][@] with "Don't simulate genotypes with warnings" option) or for some other reason
     34        except (KeyError, TypeError) as e:  # the evaluation may have failed for an invalid genotype (such as X[@][@] with "Don't simulate genotypes with warnings" option), or because the creature failed to stabilize, or for some other reason
    3535                valid = False
    3636                print('Problem "%s" so could not evaluate genotype "%s", hence assigned it low fitness: %s' % (str(e), genotype, BAD_FITNESS))
     
    154154        print('Best individuals:')
    155155        for ind in hof:
    156                 print(ind.fitness, '\t-->\t', ind[0])
     156                print(ind.fitness, '\t<--\t', ind[0])
    157157        if parsed_args.hof_savefile is not None:
    158158                save_genotypes(parsed_args.hof_savefile, OPTIMIZATION_CRITERIA, hof)
  • framspy/evolalg/run_numerical_example.py

    r1289 r1293  
    2424    print('Best individuals:')
    2525    for ind in hof:
    26         print(ind.rawfitness, '\t-->\t', ind.genotype)
     26        print(ind.rawfitness, '\t<--\t', ind.genotype)
    2727
    2828
  • framspy/evolalg/run_numerical_islands_example.py

    r1289 r1293  
    2626    print('Best individuals:')
    2727    for ind in hof:
    28         print(ind.rawfitness, '\t-->\t', ind.genotype)
     28        print(ind.rawfitness, '\t<--\t', ind.genotype)
    2929
    3030
Note: See TracChangeset for help on using the changeset viewer.