-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
Great tool!
For some user defined types, the following check would break for not having isinf and isnan.
function check_data_health(xdata, ydata)
if any(ismissing, xdata) || any(ismissing, ydata)
error("Data contains `missing` values and a fit cannot be performed")
end
if any(isinf, xdata) || any(isinf, ydata) || any(isnan, xdata) || any(isnan, ydata)
error("Data contains `Inf` or `NaN` values and a fit cannot be performed")
end
endAn example is StaticArray. By overloading this check (so called prirating), everything works fine.
I guess it would be good to provide a kwarg to allow user to switch off this check?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels