Issue with fitting when y_err is 0 #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: ivan-usov
The fitting routine doesn't seem to handle the situation with y_err being 0 for any point of data. In the following code:
https://github.com/paulscherrerinstitute/pyzebra/blob/cfe9832c1e09feb0c6474a0d54894bd41301cdbc/pyzebra/fit2.py#L134-L136
it will encounter division by 0 in
weightscalculation, which apparently breaksmod.fitfunction.