Changeset 1116 for framspy/frams-test.py
- Timestamp:
- 03/27/21 03:42:04 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/frams-test.py
r1114 r1116 93 93 frams.Simulator.init() 94 94 frams.Simulator.start() 95 step = frams.Simulator.step # cache reference to avoid repeated lookup in the loop (just for performance) 96 while frams.Simulator.running._int(): # standard-eval.expdef sets running to 0 when the evaluation is complete 97 step() 95 # step = frams.Simulator.step # cache reference to avoid repeated lookup in the loop (just for performance) 96 # while frams.Simulator.running._int(): # standard-eval.expdef sets running to 0 when the evaluation is complete 97 # step() 98 frams.Simulator.eval("while(Simulator.running) Simulator.step();") # loop in FramScript much faster than loop in python 98 99 for g in frams.GenePools[0]: # loop over all genotypes, even though we know we added only one 99 100 serialized_dict = frams.String.serialize(g.data[frams.ExpProperties.evalsavedata._value()])
Note: See TracChangeset
for help on using the changeset viewer.