JelleAalbers / blueice

Build Likelihoods Using Efficient Interpolations and monte-Carlo generated Events
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

Validate arguments to likelihood function #8

Closed JelleAalbers closed 8 years ago

JelleAalbers commented 8 years ago

Currently LogLikelihood.__call__ accepts **kwargs, and searches it for arguments corresponding to known rate and shape parameters. Thus, if you mistype a parameter, it will be silently ignored, and it appears the parameter does nothing. It would be better if you get an error when this happens instead.

JelleAalbers commented 8 years ago

Added in 5d441c5950bd36ca46d6138312d2466d0e7922a5