Ignore:
Timestamp:
01/05/22 00:29:41 (6 months ago)
Author:
Maciej Komosinski
Message:

Added comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksLib.py

    r1149 r1170  
    107107                for g in frams.GenePools[0]:
    108108                        serialized_dict = frams.String.serialize(g.data[frams.ExpProperties.evalsavedata._value()])
    109                         evaluations = json.loads(serialized_dict._string())
     109                        evaluations = json.loads(serialized_dict._string()) # Framsticks native ExtValue's get converted to native python types such as int, float, list, str.
    110110                        # now, for consistency with FramsticksCLI.py, add "num" and "name" keys that are missing because we got data directly from Genotype, not from the file produced by standard-eval.expdef's function printStats(). What we do below is what printStats() does.
    111111                        result = {"num": g.num._value(), "name": g.name._value(), "evaluations": evaluations}
Note: See TracChangeset for help on using the changeset viewer.