Changeset 1170 for framspy/FramsticksLib.py
- Timestamp:
- 01/05/22 00:29:41 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/FramsticksLib.py
r1149 r1170 107 107 for g in frams.GenePools[0]: 108 108 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. 110 110 # 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. 111 111 result = {"num": g.num._value(), "name": g.name._value(), "evaluations": evaluations}
Note: See TracChangeset
for help on using the changeset viewer.