diff --git a/enrico/fitmaker.py b/enrico/fitmaker.py index 4ecc11d..a49149e 100755 --- a/enrico/fitmaker.py +++ b/enrico/fitmaker.py @@ -103,11 +103,6 @@ def CreateLikeObject(self): Fit[PhIndex] = -float(self.config['Spectrum']['FrozenSpectralIndex']) Fit.freeze(PhIndex) self.info("Freezing spectral index at -"+str(self.config['Spectrum']['FrozenSpectralIndex'])) - elif Fit.model.srcs[self.obs.srcname].spectrum().genericName()=="PLSuperExpCutoff": - PhIndex = Fit.par_index(self.obs.srcname, 'Index1') - Fit[PhIndex] = -float(self.config['Spectrum']['FrozenSpectralIndex']) - Fit.freeze(PhIndex) - self.info("Freezing spectral index at -"+str(self.config['Spectrum']['FrozenSpectralIndex'])) else: self.warning("The model is not a PowerLaw. Cannot freeze the index.") return Fit #return the BinnedAnalysis or UnbinnedAnalysis object.