You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to produce a TSmap but I get some errors in each iteration. I ran first the command enrico_sed and then tried to produce the TSmap with the row method.
The error that it spits out is:
Generating SourceMap for Spurious.....................!
Traceback (most recent call last):
File "/home/pmunar/bin/enrico/enrico/tsmap.py", line 216, in
TSmap.FitOneRow(float(sys.argv[2]),int(sys.argv[4]))
File "/home/pmunar/bin/enrico/enrico/tsmap.py", line 109, in FitOneRow
self.FitOnePixel(ra,dec,i,j)
File "/home/pmunar/bin/enrico/enrico/tsmap.py", line 92, in FitOnePixel ,TSFit = GenAnalysisObjects(self.config,xmlfile=self.tsfolder+"/model"+str(ra)+"_"+str(dec)+".xml") #get the Fit object
File "/home/pmunar/bin/enrico/enrico/RunGTlike.py", line 46, in GenAnalysisObjects
Fit = FitRunner.CreateLikeObject()
File "/home/pmunar/bin/enrico/enrico/fitmaker.py", line 97, in CreateLikeObject
if Fit.model.srcs[self.obs.srcname].spectrum().genericName()=="PowerLaw" or Fit.model.srcs[self.obs.srcname].spectrum().genericName()=="PowerLaw2":
KeyError: 'my_source'
The name of the source of interest in the xml model and in the config file is my_source and I am modeling it with a PowerLaw.
I do not understand this error, since I produced some other TSmaps in the past and they worked well.
Thanks a lot!
Pere.
The text was updated successfully, but these errors were encountered:
Hi!
I am trying to produce a TSmap but I get some errors in each iteration. I ran first the command enrico_sed and then tried to produce the TSmap with the row method.
The error that it spits out is:
Generating SourceMap for Spurious.....................!
Traceback (most recent call last):
File "/home/pmunar/bin/enrico/enrico/tsmap.py", line 216, in
TSmap.FitOneRow(float(sys.argv[2]),int(sys.argv[4]))
File "/home/pmunar/bin/enrico/enrico/tsmap.py", line 109, in FitOneRow
self.FitOnePixel(ra,dec,i,j)
File "/home/pmunar/bin/enrico/enrico/tsmap.py", line 92, in FitOnePixel
,TSFit = GenAnalysisObjects(self.config,xmlfile=self.tsfolder+"/model"+str(ra)+"_"+str(dec)+".xml") #get the Fit object
File "/home/pmunar/bin/enrico/enrico/RunGTlike.py", line 46, in GenAnalysisObjects
Fit = FitRunner.CreateLikeObject()
File "/home/pmunar/bin/enrico/enrico/fitmaker.py", line 97, in CreateLikeObject
if Fit.model.srcs[self.obs.srcname].spectrum().genericName()=="PowerLaw" or Fit.model.srcs[self.obs.srcname].spectrum().genericName()=="PowerLaw2":
KeyError: 'my_source'
The name of the source of interest in the xml model and in the config file is my_source and I am modeling it with a PowerLaw.
I do not understand this error, since I produced some other TSmaps in the past and they worked well.
Thanks a lot!
Pere.
The text was updated successfully, but these errors were encountered: