Skip to content

Commit

Permalink
issue 70
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsanchez committed Mar 5, 2015
1 parent db1d9e4 commit fe843f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions enrico/fitmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fe843f3

Please sign in to comment.