Commit 3b94d0ca7badea12ee4e5e4f61490bb1feed5cf6

Authored by Jürgen Knödlseder
1 parent f674e8e7

Remove tscalc flag

Showing 1 changed file with 2 additions and 6 deletions
pyext/ctools/obsutils.py
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 # This script provides a number of functions that are useful for handling 2 # This script provides a number of functions that are useful for handling
3 # CTA observations. 3 # CTA observations.
4 # 4 #
5 -# Copyright (C) 2011-2014 Juergen Knoedlseder 5 +# Copyright (C) 2011-2015 Juergen Knoedlseder
6 # 6 #
7 # This program is free software: you can redistribute it and/or modify 7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by 8 # it under the terms of the GNU General Public License as published by
@@ -584,7 +584,7 @@ def spectrum(obs, source, ebounds): @@ -584,7 +584,7 @@ def spectrum(obs, source, ebounds):
584 select.run() 584 select.run()
585 585
586 # Refit and write out to spectrum 586 # Refit and write out to spectrum
587 - binlike = fit(select.obs(), log=False, debug=False, edisp=False, tscalc=True) 587 + binlike = fit(select.obs(), log=False, debug=False, edisp=False)
588 binopt_spectral = binlike.obs().models()[source].spectral() 588 binopt_spectral = binlike.obs().models()[source].spectral()
589 binflux = binopt_spectral.eval(ecenter, gammalib.GTime(0.0)) 589 binflux = binopt_spectral.eval(ecenter, gammalib.GTime(0.0))
590 if binopt_spectral[normpar].value() > 0.0: 590 if binopt_spectral[normpar].value() > 0.0:
@@ -605,9 +605,5 @@ def spectrum(obs, source, ebounds): @@ -605,9 +605,5 @@ def spectrum(obs, source, ebounds):
605 605
606 spec["TS"]["value"].append(binlike.obs().models()[source].ts()) 606 spec["TS"]["value"].append(binlike.obs().models()[source].ts())
607 607
608 - # Debugging???  
609 - #print(spec["energy"]["value"])  
610 - #print(spec["flux"]["value"])  
611 -  
612 # Return spectrum 608 # Return spectrum
613 return spec 609 return spec