Mercurial > repos > siwaa > gama
comparison src/:wq @ 3:e3153cc69e41 draft
planemo upload for repository https://forgemia.inra.fr/nathalie.rousse/use/-/tree/gama/GAMA/galaxy-tools commit 67d85c013c62c16392b4796af86836b1334f2eef-dirty
| author | siwaa |
|---|---|
| date | Fri, 07 Jun 2024 11:20:24 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 2:d203e560a4ef | 3:e3153cc69e41 |
|---|---|
| 1 <tool id="gama_tool" name="gama" version="1.0.0b"> | |
| 2 | |
| 3 <description>tool for GAMA Platform</description> | |
| 4 | |
| 5 <requirements> | |
| 6 | |
| 7 <!-- singularity --> | |
| 8 <container type="singularity">oras://registry.forgemia.inra.fr/nathalie.rousse/use/gama:d01c3645810b3e5bf1b21170fd24d21fe1f831ec</container> | |
| 9 | |
| 10 <!-- image locale | |
| 11 <container type="singularity">/home/nrousse/workspace_git/SIWAA_regroup/USE_branch_gama/use/GAMA/containers/gama.simg</container --> | |
| 12 </requirements> | |
| 13 | |
| 14 <command detect_errors="aggressive"> | |
| 15 <![CDATA[ | |
| 16 cp -fr /opt/gama-platform .; | |
| 17 cp $__tool_directory__/src/MY_predatorPrey.gaml gama-platform/headless/samples/predatorPrey/.; | |
| 18 cp $__tool_directory__/src/MY_gama-headless.sh gama-platform/headless/.; | |
| 19 cp $__tool_directory__/src/MY_sequential_example.py .; | |
| 20 cp $__tool_directory__/src/cmd_gama_headless.sh .; | |
| 21 cp $__tool_directory__/src/cmd_python_client.sh .; | |
| 22 /bin/bash cmd_gama_headless.sh > run_server.txt & sleep 120 && /bin/bash cmd_python_client.sh $nb_preys_init $nb_predators_init $nb_more_steps > run_client.txt; | |
| 23 cp run_server.txt ${run_server_txt}; | |
| 24 cp run_client.txt ${run_client_txt}; | |
| 25 cp gama-platform/headless/samples/predatorPrey/results.txt ${results_txt}; | |
| 26 ]]> | |
| 27 </command> | |
| 28 | |
| 29 <inputs> | |
| 30 | |
| 31 <param name="nb_preys_init" optional="true" type="integer" | |
| 32 value="200" min="0" max="1000" | |
| 33 label="nb_preys_init" help="[0, 1000]" /> | |
| 34 | |
| 35 <param name="nb_predators_init" optional="true" type="integer" | |
| 36 value="20" min="0" max="200" | |
| 37 label="nb_predators_init" help="[0, 200]" /> | |
| 38 | |
| 39 <param name="nb_more_steps" optional="true" type="integer" | |
| 40 value="10" min="4" max="100" | |
| 41 label="nb_more_steps" help="[4,100]" /> | |
| 42 | |
| 43 </inputs> | |
| 44 | |
| 45 <outputs> | |
| 46 <data format="txt" name="run_server_txt" label="run_server_txt"/> | |
| 47 <data format="txt" name="run_client_txt" label="run_client_txt"/> | |
| 48 <data format="txt" name="results_txt" label="results_txt"/> | |
| 49 </outputs> | |
| 50 | |
| 51 <tests> | |
| 52 </tests> | |
| 53 | |
| 54 <help><![CDATA[ | |
| 55 | |
| 56 Desc: | |
| 57 | |
| 58 ----- | |
| 59 | |
| 60 gama_tool.xml tool running a GAMA Python client interacting with gama-server | |
| 61 (Headless server) concerning a "Predator Prey" agent-based simulator. | |
| 62 | |
| 63 Code: MY_sequential_example.py | |
| 64 | |
| 65 Inputs: | |
| 66 | |
| 67 - nb_preys_init | |
| 68 - nb_predators_init | |
| 69 - nb_more_steps | |
| 70 | |
| 71 Outputs: | |
| 72 | |
| 73 - results_txt file (.txt) : produced while running the simulator | |
| 74 (cf 'reflex save_result' into MY_predatorPrey.gaml). | |
| 75 - run_server_txt file (.txt) : gama-server screen display capture | |
| 76 - run_client_txt file (.txt) : gama-client screen display capture | |
| 77 | |
| 78 Credits: | |
| 79 | |
| 80 -------- | |
| 81 | |
| 82 - Author: Nathalie Rousse nathalie.rousse@inrae.fr | |
| 83 - Copyright: INRAE | |
| 84 | |
| 85 ]]> | |
| 86 </help> | |
| 87 | |
| 88 </tool> |
