gammapy / enrico

Enrico helps you with your Fermi data analysis
http://enrico.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
22 stars 26 forks source link

Allow to save covariance matrix to file #167

Closed mireianievas closed 2 years ago

mireianievas commented 2 years ago

Needs to be tested, do not merge yet.

davidsanchez commented 2 years ago

Can I merge?

mireianievas commented 2 years ago

It seems to work. I just made a fine tune of the output format (affecting the header of the file). It should read something like:

### Covariance matrix. ###
#Parameters:
#1ES_0033+595::norm
#1ES_0033+595::alpha
#1ES_0033+595::beta

3.362790334742656873e-01,2.172058745700815481e-03,4.006870412145440569e-02
2.172058745700815481e-03,9.364105019069847381e-05,-3.017321533478121271e-04
4.006870412145440569e-02,-3.017321533478121271e-04,1.638526616501599989e-02

You can merge.

davidsanchez commented 2 years ago

thanks a lot @mireianievas