feature/analyzer-cli
Opened this issue · 0 comments
adradr commented
In order to save storage and also increase speed is simply storing everything in a dump through the simulation (grid images, creatures per round).
This feature implements a simple CLI tool, that enables to query the simulation results and sample creatures from any round by generating their genome graph, while also allowing the generate per step images and short clips for any round. This all together would help a deeper analysis of any simulation and speed up the whole process.
Feature description
- load a simulation
- print simulation configuration
- sample genome graph image of
#
creatures from roundn
- extract neuron array of creatures survived from round
n
- generate clip for rounds
a -> b
or everynth
round
By default the CLI would output results in the same folder where the simulation file is loaded from or create a subfolder with the name of the loaded file.
Possible CLI commands and configuration
gensim-cli --help
gensim-cli --load-path ./simulations/file.ext
gensim-cli get-configuration
gensim-cli sample-genome --count 10 --round 1
gensim-cli extract-survivor-neurons --round 1
gensim-cli generate-clip --rounds 1,10
gensim-cli generate-clip --n-rounds 10