Repository navigation
Remove unused assignments in test_copying_discrete_spaces - #3744
Merged
Merged
Conversation
|
Performance benchmarks:
|
codebreaker32
approved these changes
Jun 12, 2026
codebreaker32
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! Thanks @Devansh-567
Contributor
Author
|
The failing check (build / build (ubuntu, 3.14, --pre)) is unrelated to this PR. It's caused by nest_asyncio not being available in the solara/ipyvuetify dependency chain on Python 3.14 pre-release. This is an environment/dependency issue that exists on main independently of this change. |
dietcoke-17
approved these changes
Jun 13, 2026
quaquel
approved these changes
Jun 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #3737
The variables
c1andc2intest_copying_discrete_spaceswere assigned before the loop but immediately shadowed by the loop variables:As noted in the issue discussion, these assignments were never used because the loop iterates over all cells, including
(5, 5).This PR removes the unused assignments from the
OrthogonalMooreGridandHexGridtest blocks, eliminating dead code without changing test behavior.Kindly have a look at this, and if anything has to be changed do let me know, after the merging I will close #3737