Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[batch legacy] Add the possibility to run directly an experiment #361

Closed
lesquoyb opened this issue Oct 24, 2024 · 5 comments
Closed

[batch legacy] Add the possibility to run directly an experiment #361

lesquoyb opened this issue Oct 24, 2024 · 5 comments
Labels
About Batch This issue concerns batch experiments 🤗 Enhancement This is a request for enhancement

Comments

@lesquoyb
Copy link
Contributor

Is your request related to a problem? Please describe.
From what I understand, currently with batch legacy if we need to run an experiment we have to run gama two times: once to generate an xml and a second time to run the experiment plan described in the xml.
We could probably add the possibility to create the xml and execute it right away with the same command, that would make things easier in many cases.

Describe the improvement you'd like
Be able to create and execute an experiment plan in the same command call for batch legacy

@lesquoyb lesquoyb added 🤗 Enhancement This is a request for enhancement About Batch This issue concerns batch experiments labels Oct 24, 2024
@RoiArthurB
Copy link
Contributor

This could be a good idea, but not using the XML file.

As the current state of the headless using XML, it's gathering too much legacy code and starts to diverge from the GAMA core. Therefore I'd be more in favor of adding a new flag (eg. -gaml) which would run the gaml file directly in headless.

@lesquoyb
Copy link
Contributor Author

So without passing through all the legacy code, right ?
But then how do we get the outputs ?
I think having the outputs serialized as it is done in legacy is very valuable for many users.

A bit different but that makes me think that we could add functionalities to gama-server to generate the xml files and to run them too.

@hqnghi88
Copy link
Member

@lesquoyb by using autosave of output (obviously no 3D i think) or save statement of snapshot.... we tested with Alexis in some previous coding camp but i did not remember exactly what it was, but it's possible

@lesquoyb
Copy link
Contributor Author

While inspecting the code I noticed there's actually already a -gaml flag that runs directly experiments in headless mode, using the xml serialization.

It is weird I never saw it mentioned anywhere and that even you @RoiArthurB was not aware of it.

Currently its use is incompatible with the current parameters' verification, but I'm fixing this in the pr #362 along with few minor other things.

It would still need to be documented though

@lesquoyb
Copy link
Contributor Author

The pr restoring the -gaml parameter has been merged and tested (for simple cases at least).
I edited the documentation of legacy to add this method, so I think that's enough for this issue.

@github-project-automation github-project-automation bot moved this from Todo to Done in GAMA 2024-11 Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
About Batch This issue concerns batch experiments 🤗 Enhancement This is a request for enhancement
Projects
Status: Done
Development

No branches or pull requests

3 participants