gama-platform / gama.old

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

Headless generate empty XML for batch experiment #2972

Closed RoiArthurB closed 2 years ago

RoiArthurB commented 4 years ago

Describe the bug I try to generate the XML with gama-headless for a batch experiment, but the headless return me an empty XML (without the number of

To Reproduce

/***
* Example Model
***/

model noXML

global {
    int toto <- 0;

    reflex update{
        toto <- toto+1;
    }
}

experiment noXML type: batch until: cycle=300 repeat: 100 {
    parameter var:toto min:0 max:10;
}

Command to generate

$ pwd
/home/roiarthurb/.local/share/GAMA_Continuous_Linux/headless 
$ # I'm in the headless of my continuous
$ ./gama-headless.sh -xml noXML ~/Documents/gama-workspace/Experiments/models/noXML.gaml /tmp/test.xml

******************************************************************
* GAMA version 1.8                                               *
* http://gama-platform.org                                       *
* (c) 2007-2019 UMI 209 UMMISCO IRD/SU & Partners                *
******************************************************************
> JAI/ImageIO subsystem activated
Parameter file saved at: /tmp/test.xml

Final XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?><Experiment_plan/>

Expected behavior Having an experiment plan generated in my XML output

Desktop (please complete the following information):

gnoubi commented 4 years ago

Hi,

I'm not sure now, but I think that this feature has been develop to generate xml file from GUI description of experiment

Nicolas

Le 14 avr. 2020 à 14:03, Arthur Brugiere notifications@github.com a écrit :

Describe the bug I try to generate the XML with gama-headless for a batch experiment, but the headless return me an empty XML (without the number of

To Reproduce

/***

  • Example Model ***/

model noXML

global { int toto <- 0;

reflex update{ toto <- toto+1; } }

experiment noXML type: batch until: cycle=300 repeat: 100 { parameter var:toto min:0 max:10; } Command to generate

$ pwd /home/roiarthurb/.local/share/GAMA_Continuous_Linux/headless $ # I'm in the headless of my continuous $ ./gama-headless.sh -xml noXML ~/Documents/gama-workspace/Experiments/models/noXML.gaml /tmp/test.xml


  • GAMA version 1.8 *
  • http://gama-platform.org *
  • (c) 2007-2019 UMI 209 UMMISCO IRD/SU & Partners *

    JAI/ImageIO subsystem activated Parameter file saved at: /tmp/test.xml Final XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?> Expected behavior Having an experiment plan generated in my XML output

Desktop (please complete the following information):

OS: Linux PC Model: Dell XPS GAMA version: Continuous Java version: embedded JDK — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gama-platform/gama/issues/2972, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOSSHV3SZMQTW7UKXIQLPDRMRGIVANCNFSM4MHV2NCQ.

Nicolas Marilleau UMI 209 UMMISCO IRD/UPMC Chercheur invité Femto-st

Institut de Recherche pour le Développement 32 avenue Henri Varagnat 93143 Bondy Fixe : 0148027901 Mobile: 0688334906

RoiArthurB commented 4 years ago

Hi,

Is there some documentation/way to create an XML for a batch experiment?

Best,

AlexisDrogoul commented 2 years ago

Hi, is this issue still relevant ? Do we still need to generate XML files for batch experiments ? If not, please close it, thanks !

RoiArthurB commented 2 years ago

It's not relevant, but i think it would be great to have an error message displaying the proper way to run batch experiment in headless before closing this one 🤔🤔