Closed tibaldo closed 5 years ago
@tibaldo - naima
here assumes that the model function that was passed to the sampler has a parameter called data
, which is not necessarily true as we only require positional arguments and not keyword arguments for the provided model. Short term, calling the second argument of your model data
will fix it. I'll write a failing test in a branch and find another way of getting the partial function without using named arguments.
I've found a fix (see #151), but it only works for Python > 3.3...
I was trying to print out full models covering a certain energy range (not just limited to the energy range covered by the datasets)
plot_fit(sampler,e_range=[1.e3*u.eV,1.e14*u.eV],figure=fig)
and got the following error (exert)Could this be a coding bug or am I doing something wrong?