Mercurial > repos > siwaa > gama_legacy_gen
view src/cmd_gama_headless_legacy_gen.sh @ 11:770e0dde4735 draft default tip
planemo upload for repository https://forgemia.inra.fr/nathalie.rousse/use/-/tree/gama/GAMA_HEADLESS_LEGACY/galaxy-tools/gama_legacy_gen commit 8731d8cb947d6b7b65eb0fde51a4b0f44c2f4406-dirty
author | siwaa |
---|---|
date | Fri, 20 Dec 2024 23:16:10 +0000 |
parents | 382cb366533a |
children |
line wrap: on
line source
#!/bin/bash # Headless Legacy mode. # # Command to generate a XML file corresponding to an existing experiment : #. ./gama-headless.sh -xml experimentName /path/to/inputFile.gaml /path/to/outputFile.xml # with: # - -xml: flag asking the headless to generate a XML file well-formatted # for our experiment. # - experimentName: name of the experiment to run in headless. # Important : experiment of 'type': 'gui'. # - /path/to/inputFile.gaml: path (relative or absolute) to GAML file # containing the experiment to run. # - /path/to/outputFile.xml: path (relative or absolute) to the # generated XML file. # # With : # - GAMA application in folder ./software # - GAML file (containing the experiment to run) path : ./inputs/model.gaml # - Generated XML file path : ./outputs/file.xml EXPERIMENT_NAME=$1 #EXPERIMENT_NAME="prey_predator" HOME=$(echo $PWD) cd software/gama-platform/headless; /bin/bash MY_gama-headless.sh -xml ${EXPERIMENT_NAME} ${HOME}/inputs/model.gaml ${HOME}/outputs/file.xml