diff --git a/pyext/ctedispcube.i b/pyext/ctedispcube.i new file mode 100644 index 0000000..3fd8d20 --- /dev/null +++ b/pyext/ctedispcube.i @@ -0,0 +1,61 @@ +/*************************************************************************** + * ctedispcube - Energy dispersion cube generation tool * + * ----------------------------------------------------------------------- * + * copyright (C) 2016 by Maria Haupt * + * ----------------------------------------------------------------------- * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + * * + ***************************************************************************/ +/** + * @file ctedispcube.i + * @brief Energy dispersion cube generation tool definition + * @author Chia-Chun Lu + */ + +%{ +/* Put headers and other declarations here that are needed for compilation */ +#include "ctedispcube.hpp" +%} + +/***********************************************************************//** + * @class ctedispcube + * + * @brief Energy dispersion cube generation tool + ***************************************************************************/ +class ctedispcube : public ctool { + +public: + // Constructors and destructors + ctedispcube(void); + explicit ctedispcube(const GObservations& obs); + ctedispcube(int argc, char *argv[]); + ctedispcube(const ctedispcube& app); + virtual ~ctedispcube(void); + + // Methods + void clear(void); + void run(void); + void save(void); + const GCTACubeEdisp& edispcube(void) const; +}; + +/***********************************************************************//** + * @brief Energy dispersion cube generation tool Python extensions + ***************************************************************************/ +%extend ctedispcube { + ctedispcube copy() { + return (*self); + } +} diff --git a/pyext/ctools/tools.i b/pyext/ctools/tools.i index 2cbeaf4..d5ffe3a 100755 --- a/pyext/ctools/tools.i +++ b/pyext/ctools/tools.i @@ -1,7 +1,7 @@ /*************************************************************************** * ctools - SWIG file * * ----------------------------------------------------------------------- * - * copyright (C) 2010-2014 by Juergen Knoedlseder * + * copyright (C) 2010-2016 by Juergen Knoedlseder * * ----------------------------------------------------------------------- * * * * This program is free software: you can redistribute it and/or modify * @@ -54,6 +54,7 @@ %include "ctskymap.i" %include "ctexpcube.i" %include "ctpsfcube.i" +%include "ctedispcube.i" %include "ctbkgcube.i" %include "ctcubemask.i" %include "cttsmap.i" @@ -66,4 +67,4 @@ def test(): from ctools.tests import test_python_ctools test_python_ctools.test(installed=True) -%} \ No newline at end of file +%}