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 Dec 6, 2024
1 parent 1fbc941 commit 59a8c7f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 9 deletions.
15 changes: 12 additions & 3 deletions tools/hess/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,18 @@
else:
inp_pdic = inp_dic

for vn, vv in inp_pdic.items():
if vn != "_selector":
globals()[vn] = type(globals()[vn])(vv)
for _vn in [
"src_name",
"RA",
"DEC",
"T1",
"T2",
"Radius",
"pixsize",
"Emin",
"Emax",
]:
globals()[_vn] = type(globals()[_vn])(inp_pdic[_vn])

T1 = Time(T1, format="isot", scale="utc").mjd
T2 = Time(T2, format="isot", scale="utc").mjd
Expand Down
16 changes: 13 additions & 3 deletions tools/hess/Lightcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,19 @@
else:
inp_pdic = inp_dic

for vn, vv in inp_pdic.items():
if vn != "_selector":
globals()[vn] = type(globals()[vn])(vv)
for _vn in [
"src_name",
"RA",
"DEC",
"T1",
"T2",
"Radius",
"R_s",
"Emin",
"Emax",
"NTbins",
]:
globals()[_vn] = type(globals()[_vn])(inp_pdic[_vn])

T1 = Time(T1, format="isot", scale="utc").mjd
T2 = Time(T2, format="isot", scale="utc").mjd
Expand Down
18 changes: 15 additions & 3 deletions tools/hess/Spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,21 @@
else:
inp_pdic = inp_dic

for vn, vv in inp_pdic.items():
if vn != "_selector":
globals()[vn] = type(globals()[vn])(vv)
for _vn in [
"src_name",
"RA",
"DEC",
"T1",
"T2",
"Radius",
"R_s",
"Emin",
"Emax",
"NEbins",
"Efit_min",
"Efit_max",
]:
globals()[_vn] = type(globals()[_vn])(inp_pdic[_vn])

E0 = 1.0

Expand Down
4 changes: 4 additions & 0 deletions tools/hess/hess_astro_tool.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
</assert_stdout>
</test>
</tests>
<environment_variables>
<environment_variable name="BASEDIR">$__tool_directory__</environment_variable>
<environment_variable name="GALAXY_TOOL_DIR">$__tool_directory__</environment_variable>
</environment_variables>
<help>This service provides analysis of publicly available sample &#8220;Data Level
3&#8221; (DL3) data of HESS gamma-ray telescope, described by `Hess
Collaboration (2018) &lt;https://arxiv.org/abs/1810.04516&gt;`__. Three types
Expand Down

0 comments on commit 59a8c7f

Please sign in to comment.