Skip to content

Conversation

@weinbe58
Copy link
Member

@weinbe58 weinbe58 commented Dec 5, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 5, 2025 17:02
@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2025-12-05 17:49 UTC

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
626 585 93% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/bloqade/geometry/dialects/grid/_init_.py 100% 🟢
src/bloqade/geometry/dialects/grid/types.py 90% 🟢
TOTAL 95% 🟢

updated for commit: 4b8c501 by action🐍

@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Contributor

Copilot AI left a comment

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 makes index typing less strict by allowing sequences of integers in addition to int, slice, and IList types. It also adds two new convenience functions to the public API for accessing grid position data.

  • Adds support for accepting any Sequence of integers as an index in get_indices()
  • Exports col_ypos and row_xpos functions for accessing column and row positions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/bloqade/geometry/dialects/grid/types.py Extends get_indices() to accept generic sequences of integers, making indexing more flexible
src/bloqade/geometry/dialects/grid/__init__.py Exports col_ypos and row_xpos functions to the public API

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

@weinbe58 weinbe58 merged commit 858d990 into main Dec 5, 2025
13 checks passed
@weinbe58 weinbe58 deleted the phil/fix-index-typing branch December 5, 2025 17:49
weinbe58 added a commit that referenced this pull request Dec 5, 2025
* make index typing less strict

* IList is Sequence so just use Sequence check

* make more generic

* Adding test to check error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants