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

Avoid computing lazy scalar coordinates when printing a Cube (v2) #5896

Merged
merged 8 commits into from
Apr 2, 2024

Conversation

pp-mo
Copy link
Member

@pp-mo pp-mo commented Apr 2, 2024

An extension of #5788
If we (or @fnattino) prefer, we could merge this into #5788

STILL TODO:
some specific tests for the new behaviour

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 93.10345% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 89.76%. Comparing base (375da2d) to head (cd1c665).
Report is 21 commits behind head on main.

❗ Current head cd1c665 differs from pull request most recent head b210587. Consider uploading reports for the commit b210587 to get more accurate results

Files Patch % Lines
lib/iris/_representation/cube_summary.py 93.10% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5896      +/-   ##
==========================================
+ Coverage   89.73%   89.76%   +0.03%     
==========================================
  Files          92       93       +1     
  Lines       22898    22980      +82     
  Branches     5453     5476      +23     
==========================================
+ Hits        20547    20628      +81     
- Misses       1620     1622       +2     
+ Partials      731      730       -1     

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

@pp-mo pp-mo force-pushed the fnattino__issue_5743 branch from ca0bc4e to e4d3be8 Compare April 2, 2024 13:41
@pp-mo pp-mo force-pushed the fnattino__issue_5743 branch from fcb931c to dc621c7 Compare April 2, 2024 14:41
@pp-mo pp-mo marked this pull request as ready for review April 2, 2024 14:45
Copy link
Contributor

@trexfeathers trexfeathers left a comment

Choose a reason for hiding this comment

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

Thanks @pp-mo. What's New and we're done 👍

@pp-mo
Copy link
Member Author

pp-mo commented Apr 2, 2024

Thanks @pp-mo. What's New and we're done 👍

Thanks @trexfeathers hope this does ok.
Note I had to re-merge from main to resolve conflicts (in latest.rst)

@trexfeathers trexfeathers merged commit b7685b9 into SciTools:main Apr 2, 2024
20 checks passed
tkknight added a commit to tkknight/iris that referenced this pull request Apr 3, 2024
* upstream/main: (163 commits)
  Restore latest Whats New files.
  Whats new updates for `v3.9.0rc0` (SciTools#5899)
  nep29: drop py39 and support py312 (SciTools#5894)
  Support NetCDF v3 files in chunking control code. (SciTools#5897)
  Avoid computing lazy scalar coordinates when printing a Cube (v2) (SciTools#5896)
  Force pytest colour output on GitHub Actions (SciTools#5895)
  Make typing 3.9 compatible.
  Improve typing readability.
  Updated environment lockfiles (SciTools#5892)
  [pre-commit.ci] pre-commit autoupdate
  What's New entry for SciTools#5740 .
  Iris to GeoVista conversion (SciTools#5740)
  Try Union for type hinting.
  Type hinting.
  Fix typo.
  Re-introduce backwards compatible warning.
  Updated documentation.
  Remove loose references to fill value warnings.
  Advertise structured_um_loading performance regression.
  [pre-commit.ci] pre-commit autoupdate
  ...
tkknight added a commit to tkknight/iris that referenced this pull request Apr 10, 2024
…th_numpydoc

* upstream/main: (39 commits)
  Bump scitools/workflows from 2024.03.3 to 2024.04.0 (SciTools#5907)
  [pre-commit.ci] pre-commit autoupdate (SciTools#5906)
  Updated environment lockfiles (SciTools#5904)
  Ignore flaticon.com in linkchecks. (SciTools#5905)
  Implement lazy area weights (SciTools#5658)
  Add option to specify chunks in `iris.util.broadcast_to_shape` (SciTools#5620)
  Unpin sphinx (SciTools#5901)
  DOC: clarify save_pairs_from_cube docstring (SciTools#5783)
  Restore latest Whats New files.
  Whats new updates for `v3.9.0rc0` (SciTools#5899)
  nep29: drop py39 and support py312 (SciTools#5894)
  Support NetCDF v3 files in chunking control code. (SciTools#5897)
  Avoid computing lazy scalar coordinates when printing a Cube (v2) (SciTools#5896)
  Force pytest colour output on GitHub Actions (SciTools#5895)
  Make typing 3.9 compatible.
  Improve typing readability.
  Updated environment lockfiles (SciTools#5892)
  [pre-commit.ci] pre-commit autoupdate
  What's New entry for SciTools#5740 .
  Iris to GeoVista conversion (SciTools#5740)
  ...
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.

3 participants