Skip to content

Conversation

@weinbe58
Copy link
Member

@weinbe58 weinbe58 commented May 9, 2025

No description provided.

@weinbe58 weinbe58 requested a review from Copilot May 9, 2025 20:21
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 adds wrappers around grid operations and updates tests to use the new wrappers while improving type inference. Key changes include:

  • Updating test files (test_typeinfer.py and test_concrete.py) to use new grid wrapper functions and adjusted import paths.
  • Introducing a new interface file (_interface.py) that provides wrapped grid operations.
  • Adjusting module exports and updating the project’s coverage configuration in pyproject.toml.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/grid/test_typeinfer.py Updated tests to use grid.new with type inference and renamed test functions.
test/grid/test_concrete.py Updated import paths for grid module.
src/bloqade/geometry/dialects/grid/_interface.py Added wrappers for grid operations and associated type annotations.
src/bloqade/geometry/dialects/grid/init.py Re-exported new interface functions.
src/bloqade/geometry/init.py Simplified grid import.
pyproject.toml Updated coverage report settings to exclude certain decorators.
Comments suppressed due to low confidence (1)

test/grid/test_typeinfer.py:13

  • [nitpick] Consider using a more descriptive function name instead of 'test_1' to clarify the intent of the test.
def test_1(spacing: ilist.IList[float, Literal[2]]):

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@weinbe58 weinbe58 merged commit 2903b8b into main May 9, 2025
9 checks passed
@weinbe58 weinbe58 deleted the phil/interface branch May 9, 2025 20:23
weinbe58 added a commit that referenced this pull request May 9, 2025
* adding wrappers

* reexporting wrappers

* fixing test

* Update src/bloqade/geometry/dialects/grid/_interface.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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