Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with TSmap generation #99

Open
pmunar opened this issue Aug 12, 2016 · 1 comment
Open

Problem with TSmap generation #99

pmunar opened this issue Aug 12, 2016 · 1 comment

Comments

@pmunar
Copy link

pmunar commented Aug 12, 2016

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.

@davidsanchez
Copy link
Member

Hi
could you attache the config and xml file please
thanks
david

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants