gama-platform / gama.old

Main repository for developing the 1.x versions of GAMA
GNU General Public License v3.0
303 stars 99 forks source link

Autosave facet at the experiment level #3121

Closed agrignard closed 2 years ago

agrignard commented 3 years ago

Is your request related to a problem? Please describe. We currently have the possibility to autosave a picture for a given display using the facet autosave. However more and more several displays are used in the same experiment (e.g with Comokit)

Screenshot 2021-06-30 at 10 01 40

Describe the solution you'd like I was wondering if it would make sense (and if it's sounds doable) to have an autosave facet at the experiment level

Describe alternatives you've considered If not possible it's always possible to save every display one by one and reconstruct the full experiment by hand but this facte would save lots of time

Additional context Add any other context or screenshots about the feature request here.

sriramab commented 3 years ago

I support this request. May be at the "new" layout level ?

AlexisDrogoul commented 3 years ago

experiment no of course, but probably at the output level. Or layout. But in that case, it would save all the views (incl. monitors, parameters, etc.) using a simple call to Robot.createScreenCapture(). Nothing more than the average screen capture you can take with your computer, only difference being that it is synchronised with the simulation cycles.

agrignard commented 3 years ago

@AlexisDrogoul yes this will be helpful and the output level and easier to produce videos/timelapses (e.g for the comokit example). Something not very possible with the default screen capture of the mac that is indeed not sync with the simulation.

AlexisDrogoul commented 2 years ago

I've pushed a simple implementation for this. The autosave: facet is added to output and accepts either a bool or a string(file name, which can be dynamic, i.e. evolve with the cycle, etc.).

hqnghi88 commented 2 years ago

Tested!

image