flav-io / flavio

A Python package for flavour physics phenomenology in the Standard model and beyond
http://flav-io.github.io/
MIT License
71 stars 62 forks source link

Missing obs_err_dict in flavio.plots.q2_plot_th_bin #24

Closed f-thiele closed 8 years ago

f-thiele commented 8 years ago

Hi all,

I noticed that calling flavio.plots.q2_plot_th_bin in flavio.plots with wilson coefficients defined - so wc!=None - it will always result in a crash since obs_err_dict does not exist for assigning

err = obs_err_dict[bin_]

four lines later. Is there any way of fixing this by pulling up uncertainties, or does there maybe even exist an equivalent to flavio.sm_uncertainty for new physics?

Best,

Fabian

DavidMStraub commented 8 years ago

Hi,

good point. Actually I had this function (np_uncertainty) "lying around" anyway. Can you check if the last two commits to master solve your problem?

Thanks, D.

f-thiele commented 8 years ago

Hi David,

thanks for your quick response. Your commits do indeed solve it and things are running smooth now.

Best,

Fabian