Skip to content

Commit

Permalink
automatic update
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoda-esg-bot committed Feb 24, 2025
1 parent 1d37121 commit 94f5b32
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/aafrag/Spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from oda_api.json import CustomJSONEncoder

dN_dp = "pow(p/1e4, -1.99)*exp(-p/1e4)" # http://odahub.io/ontology#String ; oda:label "Source spectrum dN/dp"
sec = "nu_all" # http://odahub.io/ontology#String ; oda:label "secondary particle channel ; oda:allowed_value "gam", "el", "pos", "nu_e", "anu_e", "nu_mu", "anu_mu", "nu_all"
sec = "nu_all" # http://odahub.io/ontology#String ; oda:label "secondary particle channel" ; oda:allowed_value "gam", "el", "pos", "nu_e", "anu_e", "nu_mu", "anu_mu", "nu_all"

_galaxy_wd = os.getcwd()

Expand Down
15 changes: 12 additions & 3 deletions tools/aafrag/aafrag_astro_tool.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<requirements>
<requirement type="package" version="7.0.1">astropy</requirement>
<requirement type="package" version="3.10.0">matplotlib</requirement>
<requirement type="package" version="1.2.27">oda-api</requirement>
<requirement type="package" version="7.16.6">nbconvert</requirement>
<!--Requirements string 'aafragpy
' can't be converted automatically. Please add the galaxy/conda requirement manually or modify the requirements file!-->
<requirement type="package" version="1.2.27">oda-api</requirement>
<!--Requirements string 'nb2workflow[cwl,service,rdf,mmoda]>=1.3.30
' can't be converted automatically. Please add the galaxy/conda requirement manually or modify the requirements file!-->
<requirement type="package" version="7.16.6">nbconvert</requirement>
</requirements>
<command detect_errors="exit_code">python '$__tool_directory__/Spectrum.py'</command>
<configfiles>
Expand All @@ -19,7 +19,16 @@
</environment_variables>
<inputs>
<param name="dN_dp" type="text" value="pow(p/1e4, -1.99)*exp(-p/1e4)" label="Source spectrum dN/dp" />
<param name="sec" type="text" value="nu_all" label="sec" />
<param name="sec" type="select" label="secondary particle channel">
<option value="anu_e">anu_e</option>
<option value="anu_mu">anu_mu</option>
<option value="el">el</option>
<option value="gam">gam</option>
<option value="nu_all" selected="true">nu_all</option>
<option value="nu_e">nu_e</option>
<option value="nu_mu">nu_mu</option>
<option value="pos">pos</option>
</param>
</inputs>
<outputs>
<data label="${tool.name} -&gt; Spectrum spectrum_png" name="out_Spectrum_spectrum_png" format="auto" from_work_dir="spectrum_png_galaxy.output" />
Expand Down

0 comments on commit 94f5b32

Please sign in to comment.