How do I fix this galactic source analysis using python?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 2K views
Carphysics
Messages
6
Reaction score
0

Homework Statement


This is related to Astronomy & python . I am trying free-up sources on TS map on a galactic source with python script. But when I run the script, at the end of the process, I get the following run time error.

Code:
Traceback (most recent call last):
  File "find_new_sources.py", line 149, in <module>
    like1.fit()
  File "/opt/ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.19-0/x86_64-unknown-linux-gnu-libc2.19-0/lib/python/AnalysisBase.py", line 99, in fit
    optObject=optObject)
  File "/opt/ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.19-0/x86_64-unknown-linux-gnu-libc2.19-0/lib/python/AnalysisBase.py", line 142, in _errors
    myOpt.find_min(verbosity, tol, self.tolType)
  File "/opt/ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.19-0/x86_64-unknown-linux-gnu-libc2.19-0/lib/python/pyLikelihood.py", line 2093, in find_min
    return lib_pyLikelihood.Optimizer_find_min(*args)
RuntimeError: Minuit HESSE results invalid

Homework Equations

The Attempt at a Solution



I tried debugging the code by adding print statements on various spots in the script, as well as running the script on a previous iteration of this freeing process to see whether I would get the same xml file, but both of these methods resulted in the same error.

As I find my python related questions in this forum, I am posting it here. If this is not a correct forum, let me know, where can I seek guidance.

Thanks for guidance.
 
on Phys.org
Never used Python. Try looking at http://iminuit.readthedocs.io/en/latest/api.html and searching for "hesse" on the page (it's the 3rd occurrence on the page). It gives a brief description and an alternative error checking function named "minos".

Essentially it says that "hesse" is good for evaluating the error matrix if the error curve shape is parabolic. "minos" does the same without the parabolic constraint.