We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Evaluating the coefficients from a polyfit that happened to be none results in a polyval evaluation of zeros.
I expect the result to be nan when an input is nan as well. Note passing in skipna=True to polyfit does not make a difference.
skipna=True
polyfit
import xarray as xr import numpy as np arr = xr.DataArray(np.ones(100)*np.nan, dims=["time"], coords={"time": np.arange(100)}) xr.polyval(arr.time, arr.polyfit(dim="time", deg=1))
No response
The text was updated successfully, but these errors were encountered:
Fixed on main thanks to @headtr1ck !
Sorry, something went wrong.
Ohh, great, thanks! I guess then it was #6601 that fixed this.
No branches or pull requests
What happened?
Evaluating the coefficients from a polyfit that happened to be none results in a polyval evaluation of zeros.
What did you expect to happen?
I expect the result to be nan when an input is nan as well. Note passing in
skipna=True
topolyfit
does not make a difference.Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment
The text was updated successfully, but these errors were encountered: