Closed maitreyakun closed 1 year ago
Hello @maitreyakun, I am very sorry for the late reply.
As this seems an issue related to a particular dataset, and not to the code itself, do you mind if we discuss it on the agnpy
slack. You can write in the #help channel or directly to me.
Here the invitation to join slack.
https://join.slack.com/t/agnpy/shared_invite/zt-1fum4zrt1-eETF1HsN_HAkF_Fxag0AFg
I am trying to fit a MWL SED of the source BL Lacertae using
agnpy
. I prepared my source-file - with frequency [eV], fluxes [erg / cm^2], and positive & negative flux-errors [erg / cm^2] - as an.ecsv
file, following the format prescribed in the given sample MWL SED Data files (e.g., Mrk 421).However, when I run
agnpy.fit
(with thegammapy
wrapper andSynchrotronSelfComptonModel
), I get the following error when I try to plot the SED first:'xerr' must not contain negative values
It seems
xerr
means something like the error in the frequency; however, I had not specified any error there so far (the only error column in the datafile comes from fluxes - this is also the case for the given MWL SEDs), so I don't get where this error could be coming from.Additionally, if I try to fit with
minuit
, the fit does not converge, giving the following output:What may be causing these issues, and how can I resolve them? I can provide the
.ecsv
source-file, if needed.