-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use error_members instead of rawdata #1517
Conversation
@Zaharid are you using the paramfits package? Is it tested / are there runcards that I can use as an example that things don't break? (the |
Greetings from your nice fit 🤖 !
Check the report carefully, and please buy me a ☕ , or better, a GPU 😉! |
oh, that's a pontetially important one, didn't realise it was paramfits stuff. Maybe using Stats everywhere will create the parabolas :P |
The error seems to be That said, the fact that now they are arrays (of one element) when they used to be floats is a side-effect I was not expecting so I'm actually happy it failed. |
Ok, for now it seems to work and generate the same thing. Thanks! |
How did you trigger that? |
from reportengine.floatformatting import ValueErrorTuple
import numpy as np
aa = ValueErrorTuple(np.array([3]), np.array([1]))
print(aa) I don't think throwing an exception here is a bug as it did help me, but naively I would think it is a common enough situation that warrants its own exception. |
I'd say it is behaving as expected. Not adding that special case. |
This looks good as well. Not testing too much manually but then again hopefully we have automated tests for most stuff. |
This is straightforward for MC PDFs (they are the same thing now and this change will make the change from all_members to only_replicas very simple) but for Hessian PDFs is instead very dangerous since the error members are the rawdata-1.
Making this as a separate PR since it makes many changes in the code but are almost a
sed
(a manual one nonetheless) and because I will be running the fit bot quite a bit I guess.