Skip to content

First small cleanup#2335

Merged
ClaudiaComito merged 2 commits into
helmholtz-analytics:914_adv-indexing-outshape-outsplitfrom
brownbaerchen:refactor_distr_mask_fast_path
Jun 9, 2026
Merged

First small cleanup#2335
ClaudiaComito merged 2 commits into
helmholtz-analytics:914_adv-indexing-outshape-outsplitfrom
brownbaerchen:refactor_distr_mask_fast_path

Conversation

@brownbaerchen

Copy link
Copy Markdown
Collaborator

This is a tiny cleanup with some distr_mask_fast_path stuff. It doesn't get rid of it, just of a section that cannot be reached.

Copilot AI review requested due to automatic review settings June 3, 2026 13:41
@github-project-automation github-project-automation Bot moved this to Todo in Roadmap Jun 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR performs a small cleanup in DNDarray indexing by removing / simplifying distr_mask_fast_path branches that are effectively unreachable, reducing conditional complexity in __process_key() without changing behavior.

Changes:

  • Move the distributed-mask “early out” return to live directly under the condition that establishes the fast-path mask criteria.
  • Remove an unreachable if not distr_mask_fast_path: ... else: keep raw boolean mask branch in the boolean-indexing handling.
  • Simplify a mask-like op_type assignment in an earlier return path where distr_mask_fast_path cannot apply.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ClaudiaComito ClaudiaComito left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks

@github-project-automation github-project-automation Bot moved this from Todo to Merge queue in Roadmap Jun 9, 2026
@ClaudiaComito ClaudiaComito merged commit eaa34eb into helmholtz-analytics:914_adv-indexing-outshape-outsplit Jun 9, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from Merge queue to Done in Roadmap Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants