Skip to content

Conversation

@bjlittle
Copy link
Member

@bjlittle bjlittle commented Jun 16, 2023

🚀 Pull Request

Description

This PR is a follow-on to #5142.

Lazy comparison will always yield a truthy value, therefore we require to realize the comparison. In this case, we're performing either lazy indexing for a single value or comparing lazy single values. Realizing the result won't undo the intent of #5142.

Great spot @trexfeathers 👀

To do:

  • Add a test case/s to highlight the issue and ratify adoption of as_concrete_data pattern, if possible

Consult Iris pull request check list

@bjlittle bjlittle marked this pull request as draft June 16, 2023 08:39
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (c710a2e) 89.32% compared to head (9a99ac6) 89.32%.

Additional details and impacted files
@@           Coverage Diff           @@
##           v3.6.x    #5353   +/-   ##
=======================================
  Coverage   89.32%   89.32%           
=======================================
  Files          89       89           
  Lines       22398    22398           
  Branches     5375     5375           
=======================================
  Hits        20008    20008           
  Misses       1640     1640           
  Partials      750      750           
Impacted Files Coverage Δ
lib/iris/_concatenate.py 95.47% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bjlittle
Copy link
Member Author

Ping @sloosvel, just so you're aware 👍

@bjlittle bjlittle marked this pull request as ready for review June 18, 2023 23:10
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 @bjlittle, this all makes sense to me.

A few changes to improve test readability:

@trexfeathers trexfeathers merged commit 9e2cff5 into SciTools:v3.6.x Jun 20, 2023
@bjlittle
Copy link
Member Author

@trexfeathers Awesome, thanks 🍻

@bjlittle bjlittle deleted the follow-on branch September 22, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: 🏁 Done - v3.6.1

Development

Successfully merging this pull request may close these issues.

2 participants