scikit-hep / probfit

Cost function builder. For fitting distributions.
http://probfit.readthedocs.io/
MIT License
51 stars 30 forks source link

Problem when using parts, and iminuit.describe #84

Closed marinang closed 6 years ago

marinang commented 6 years ago

Hi,

When I try to use parts from AddPdf, AddPdfNorm ... I encounter an error TypeError: Unable to obtain function signature I've dug a bit this because in parts FakeFunc is applied on a cython_function, andcalling iminuit.describe on this function doesn't work.

I think that this can be removed in parts ret = FakeFunc(tmp) ret.func_code = self.func_code

because It doesn't seems to be useful.

Matt

marinang commented 6 years ago

Maybe this would help #80!

marinang commented 6 years ago

PR #91 solves this.