fermi-lat / Likelihood

BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

RuntimeError: Covariance matrix size does not match the number of free parameters. #45

Closed Sanjuphysics12 closed 4 years ago

Sanjuphysics12 commented 4 years ago

I am getting this problem during likelihood analysis. How can I fix this problem?

nmirabal commented 4 years ago

Make sure you are using the same XML file that you used to compute the covariance matrix in subsequent steps. Otherwise, there will be a mismatch.

Sanjuphysics12 commented 4 years ago

I am using the same XML file. Still, I am getting the mismatch.

nmirabal commented 4 years ago

Can you run the following analysis thread on your data?. https://fermi.gsfc.nasa.gov/ssc/data/analysis/scitools/python_tutorial.html

Sanjuphysics12 commented 4 years ago

@nmirabal I am getting the same error when it's time to print 'fluxError'.

nmirabal commented 4 years ago

I haven't been able to reproduce this issue. Could you share the step by step commands and files?.

Sanjuphysics12 commented 4 years ago

Problem solved.