From 59a8c7f21294285706b225208552e0f7da54b2d8 Mon Sep 17 00:00:00 2001 From: mmoda-esg-bot Date: Fri, 6 Dec 2024 01:57:34 +0000 Subject: [PATCH] automatic update following https://gitlab.renkulab.io/astronomy/mmoda/hess/-/commit/9ef803dc9f804cc0582e19180c794f90d6e3f8ea --- tools/hess/Image.py | 15 ++++++++++++--- tools/hess/Lightcurve.py | 16 +++++++++++++--- tools/hess/Spectrum.py | 18 +++++++++++++++--- tools/hess/hess_astro_tool.xml | 4 ++++ 4 files changed, 44 insertions(+), 9 deletions(-) diff --git a/tools/hess/Image.py b/tools/hess/Image.py index 14a8a470..f37bbbd8 100644 --- a/tools/hess/Image.py +++ b/tools/hess/Image.py @@ -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 diff --git a/tools/hess/Lightcurve.py b/tools/hess/Lightcurve.py index 15495c77..896b2ef2 100644 --- a/tools/hess/Lightcurve.py +++ b/tools/hess/Lightcurve.py @@ -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 diff --git a/tools/hess/Spectrum.py b/tools/hess/Spectrum.py index e9e0b3a8..0d658f2a 100644 --- a/tools/hess/Spectrum.py +++ b/tools/hess/Spectrum.py @@ -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 diff --git a/tools/hess/hess_astro_tool.xml b/tools/hess/hess_astro_tool.xml index ca2a96ab..dff944cf 100644 --- a/tools/hess/hess_astro_tool.xml +++ b/tools/hess/hess_astro_tool.xml @@ -143,6 +143,10 @@ + + $__tool_directory__ + $__tool_directory__ + This service provides analysis of publicly available sample “Data Level 3” (DL3) data of HESS gamma-ray telescope, described by `Hess Collaboration (2018) <https://arxiv.org/abs/1810.04516>`__. Three types