Mercurial > repos > siwaa > gama_legacy_gen
comparison src/cmd_gama_headless_legacy_gen.sh @ 0:fb186a4fb3e0 draft
planemo upload for repository https://forgemia.inra.fr/nathalie.rousse/use/-/tree/gama/GAMA_HEADLESS_LEGACY/galaxy-tools/gama_legacy_gen commit 14769577c04bcb2781b2d240f1f57a2342169cce-dirty
author | siwaa |
---|---|
date | Fri, 02 Aug 2024 18:02:56 +0000 |
parents | |
children | 470b8ed4ce1a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:fb186a4fb3e0 |
---|---|
1 #!/bin/bash | |
2 | |
3 # Headless Legacy mode. | |
4 # | |
5 # Command to generate a XML file corresponding to an existing experiment : | |
6 #. ./gama-headless.sh -xml experimentName /path/to/inputFile.gaml /path/to/outputFile.xml | |
7 # with: | |
8 # - -xml: flag asking the headless to generate a XML file well-formatted | |
9 # for our experiment. | |
10 # - experimentName: name of the experiment to run in headless. | |
11 # Important : experiment of 'type': 'gui'. | |
12 # - /path/to/inputFile.gaml: path (relative or absolute) to GAML file | |
13 # containing the experiment to run. | |
14 # - /path/to/outputFile.xml: path (relative or absolute) to the | |
15 # generated XML file. | |
16 # | |
17 # With : | |
18 # - GAMA application in folder ./software | |
19 # - GAML file (containing the experiment to run) path : ./inputs/model.gaml | |
20 # - Generated XML file path : ./outputs/file.xml | |
21 | |
22 EXPERIMENT_NAME=$1 | |
23 #EXPERIMENT_NAME="prey_predator" | |
24 | |
25 HOME=$(echo $PWD) | |
26 cd software/gama-platform/headless; | |
27 /bin/bash MY_gama-headless.sh -xml ${EXPERIMENT_NAME} ${HOME}/inputs/model.gaml ${HOME}/outputs/file.xml |