Skip to content
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

Always force dask arrays to float in missing.interp_func #4771

Merged
merged 5 commits into from
Jan 12, 2021

Conversation

Illviljan
Copy link
Contributor

@Illviljan Illviljan commented Jan 6, 2021

scipy.interpolate.interp1d always forces float so make sure that da.blockwise understands that as well.

@pep8speaks
Copy link

pep8speaks commented Jan 6, 2021

Hello @Illviljan! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-01-06 12:04:04 UTC

@mathause mathause merged commit 9bb0302 into pydata:master Jan 12, 2021
@mathause
Copy link
Collaborator

thanks @Illviljan! Do I understand correctly - this does not resolve #4770 and we should leave it open?

@Illviljan
Copy link
Contributor Author

@mathause In the ideal world I think we should get back the same dtype as it was before interpolation.
If we handle that with the same performance then it can be closed. Might be tough to close it though because when I've simply tested using .astype() it unfortunately slows down too much.

Maybe rewording the title a bit is in order or should we make a new one?

dcherian added a commit to TomNicholas/xarray that referenced this pull request Jan 18, 2021
* upstream/master: (342 commits)
  fix decode for scale/ offset list (pydata#4802)
  Expand user dir paths (~) in open_mfdataset and to_zarr. (pydata#4795)
  add a version info step to the upstream-dev CI (pydata#4815)
  fix the ci trigger action (pydata#4805)
  scatter plot by order of the first appearance of hue (pydata#4723)
  don't skip the scheduled CI (pydata#4806)
  coords: retain str dtype (pydata#4759)
  Fix interval labels with units (pydata#4794)
  Always force dask arrays to float in missing.interp_func (pydata#4771)
  Print number of variables in repr (pydata#4762)
  install conda as a library in the minimum dependency check CI (pydata#4792)
  Migrate CI from azure pipelines to GitHub Actions (pydata#4730)
  use conda.api instead of parallel calls to the conda binary (pydata#4775)
  Speed up missing._get_interpolator (pydata#4776)
  Remove special case in guess_engines (pydata#4777)
  improve typing of OrderedSet (pydata#4774)
  CI: ignore some warnings (pydata#4773)
  DOC: update hyperlink for xskillscore (pydata#4778)
  drop support for python 3.6 (pydata#4720)
  Trigger upstream CI on cron schedule (by default) (pydata#4729)
  ...
@Illviljan Illviljan deleted the Illviljan-interp_correct_dtype branch May 18, 2021 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants