From 3b94d0ca7badea12ee4e5e4f61490bb1feed5cf6 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Mon, 2 Feb 2015 23:03:14 +0100 Subject: [PATCH] Remove tscalc flag --- pyext/ctools/obsutils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pyext/ctools/obsutils.py b/pyext/ctools/obsutils.py index cd0998d..e2ea386 100755 --- a/pyext/ctools/obsutils.py +++ b/pyext/ctools/obsutils.py @@ -2,7 +2,7 @@ # This script provides a number of functions that are useful for handling # CTA observations. # -# Copyright (C) 2011-2014 Juergen Knoedlseder +# Copyright (C) 2011-2015 Juergen Knoedlseder # # 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 @@ -584,7 +584,7 @@ def spectrum(obs, source, ebounds): select.run() # Refit and write out to spectrum - binlike = fit(select.obs(), log=False, debug=False, edisp=False, tscalc=True) + binlike = fit(select.obs(), log=False, debug=False, edisp=False) binopt_spectral = binlike.obs().models()[source].spectral() binflux = binopt_spectral.eval(ecenter, gammalib.GTime(0.0)) if binopt_spectral[normpar].value() > 0.0: @@ -605,9 +605,5 @@ def spectrum(obs, source, ebounds): spec["TS"]["value"].append(binlike.obs().models()[source].ts()) - # Debugging??? - #print(spec["energy"]["value"]) - #print(spec["flux"]["value"]) - # Return spectrum return spec -- libgit2 0.21.4