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

Specify meta in dask.array.map_blocks #5989

Merged
merged 11 commits into from
Oct 28, 2024

Conversation

bouweandela
Copy link
Member

@bouweandela bouweandela commented Jun 6, 2024

🚀 Pull Request

Description

Specify meta in dask.array.map_blocks to avoid having the wrong chunktype in the output array.

Closes #5988


Consult Iris pull request check list


Add any of the below labels to trigger actions on this PR:

  • benchmark_this Request that this pull request be benchmarked to check if it introduces performance shifts

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.88%. Comparing base (9c29117) to head (3d2389f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5989   +/-   ##
=======================================
  Coverage   89.87%   89.88%           
=======================================
  Files          88       88           
  Lines       23306    23315    +9     
  Branches     4336     4338    +2     
=======================================
+ Hits        20947    20956    +9     
  Misses       1628     1628           
  Partials      731      731           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bouweandela bouweandela marked this pull request as ready for review July 3, 2024 09:10
@pp-mo
Copy link
Member

pp-mo commented Jul 3, 2024

Hmm linkcheck fail is this one...
( whatsnew/1.4: line 131) broken https://www.opendap.org/ - 500 Server Error: Internal Server Error for url: https://www.opendap.org/

The website really is down right now :-(

@pp-mo pp-mo self-requested a review July 3, 2024 09:57
@pp-mo pp-mo self-assigned this Jul 3, 2024
Copy link
Member

@pp-mo pp-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does seem basically sound, but I have a couple of worries to raise.
We can go with this if you don't like the suggestions.

lib/iris/_lazy_data.py Outdated Show resolved Hide resolved
lib/iris/_lazy_data.py Outdated Show resolved Hide resolved
@bouweandela
Copy link
Member Author

@pp-mo This is ready for another review. The readthedocs build appears to be failing because it tries to download shapefiles from a server that is offline.

@pp-mo
Copy link
Member

pp-mo commented Oct 28, 2024

Thanks for your patience @bouweandela !
We can get this into v3.11

@pp-mo pp-mo enabled auto-merge (squash) October 28, 2024 11:30
@pp-mo pp-mo merged commit 14d9714 into SciTools:main Oct 28, 2024
21 checks passed
@bouweandela bouweandela deleted the fix-map-blocks-chunktype branch October 28, 2024 12:48
HGWright added a commit to HGWright/iris that referenced this pull request Oct 31, 2024
* upstream/main: (194 commits)
  Restore latest Whats New files.
  [pre-commit.ci] pre-commit autoupdate (SciTools#6205)
  correct major minor in whatsnew (SciTools#6202)
  What's new updates for v3.11.0rc0 . (SciTools#6201)
  Update CF standard names table. (SciTools#6200)
  Specify meta in dask.array.map_blocks (SciTools#5989)
  added in a vertical rule for surface fields (SciTools#5734)
  Updated environment lockfiles (SciTools#6197)
  Reduce duplication in cf.py spanning checks. (SciTools#6196)
  Fix attribute array comparison (SciTools#6181)
  Enable factory references to create new dimensions on load. (SciTools#6168) (SciTools#6194)
  Improve handling of masks in concatenate (SciTools#6187)
  Demo Numpy v2 (SciTools#6035)
  Bump scitools/workflows from 2024.10.1 to 2024.10.2 (SciTools#6186)
  Document use of new_axis to control merge (SciTools#6180)
  Updated environment lockfiles (SciTools#6184)
  [pre-commit.ci] pre-commit autoupdate (SciTools#6175)
  Updated environment lockfiles (SciTools#6183)
  Update to `cell_method` parsing (SciTools#6083)
  Bump scitools/workflows from 2024.10.0 to 2024.10.1 (SciTools#6179)
  ...
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.

Regridding produces wrong chunktype for lazy masked arrays
2 participants