Commit befa124b62daf50d25da0dd7b466215e84992c30
1 parent
8e3068f3
Remove changes that are not part of the commit.
Showing
1 changed file
with
1 additions
and
9 deletions
cscripts/cssens.py
| ... | ... | @@ -52,7 +52,6 @@ class cssens(ctools.cscript): |
| 52 | 52 | self.m_dec = None |
| 53 | 53 | |
| 54 | 54 | # Make sure that parfile exists |
| 55 | - print "making sure the parfile exists" | |
| 56 | 55 | file = self.parfile() |
| 57 | 56 | |
| 58 | 57 | # Initialise application |
| ... | ... | @@ -89,8 +88,6 @@ class cssens(ctools.cscript): |
| 89 | 88 | """ |
| 90 | 89 | # Set parfile name |
| 91 | 90 | parfile = self.name+".par" |
| 92 | - | |
| 93 | - print "parfile ",parfile | |
| 94 | 91 | |
| 95 | 92 | try: |
| 96 | 93 | pars = gammalib.GApplicationPars(parfile) |
| ... | ... | @@ -236,11 +233,9 @@ class cssens(ctools.cscript): |
| 236 | 233 | |
| 237 | 234 | # Set energies |
| 238 | 235 | if self.m_type == "Differential": |
| 239 | - print "Differential " | |
| 240 | 236 | emin = self.m_ebounds.emin(ieng) |
| 241 | 237 | emax = self.m_ebounds.emax(ieng) |
| 242 | 238 | elif self.m_type == "Integral": |
| 243 | - print "Integral " | |
| 244 | 239 | emin = self.m_ebounds.emin(ieng) |
| 245 | 240 | emax = self.m_ebounds.emax() |
| 246 | 241 | else: |
| ... | ... | @@ -474,9 +469,6 @@ class cssens(ctools.cscript): |
| 474 | 469 | sim = obsutils.sim(obs, nbins=self.m_enumbins, seed=iter, |
| 475 | 470 | binsz=self.m_binsz, npix=self.m_npix, |
| 476 | 471 | log=self.m_log, debug=self.m_debug, edisp=self.m_edisp) |
| 477 | - sim = obsutils.sim(obs, nbins=self.m_enumbins, seed=iter, | |
| 478 | - binsz=self.m_binsz, npix=self.m_npix, | |
| 479 | - log=self.m_log, debug=self.m_debug, edisp=self.m_edisp) | |
| 480 | 472 | |
| 481 | 473 | # Determine number of events in simulation |
| 482 | 474 | nevents = 0.0 |
| ... | ... | @@ -735,7 +727,7 @@ class cssens(ctools.cscript): |
| 735 | 727 | self.log(str(par)+"\n") |
| 736 | 728 | |
| 737 | 729 | # Store result |
| 738 | - result = {'loge': loge, 'emin': math.log10(emin.TeV()), 'emax': math.log10(emax.TeV()), \ | |
| 730 | + result = {'loge': loge, 'emin': emin.TeV(), 'emax': emax.TeV(), \ | |
| 739 | 731 | 'crab_flux': crab_flux, 'photon_flux': photon_flux, \ |
| 740 | 732 | 'energy_flux': energy_flux, \ |
| 741 | 733 | 'sensitivity': sensitivity} | ... | ... |