Skip to content

test(utils): pin chain and atom pairing in atom reconciliation tests - #515

Open
k-chrispens wants to merge 1 commit into
mainfrom
badtest/20261016-1120-modal
Open

k-chrispens wants to merge 1 commit into
mainfrom
badtest/20261016-1120-modal

Conversation

@k-chrispens

@k-chrispens k-chrispens commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Simplifies tests, so that it's easier to parse later down the line if we end up with issues here.

Summary by CodeRabbit

  • Tests
    • Improved coverage of atom matching across reordered chains and differently ordered atoms.
    • Added checks that copied coordinates match expected values while non-common atoms retain their template coordinates.

@k-chrispens
k-chrispens requested a review from a team as a code owner October 24, 2026 00:07
Copilot AI balanced review requested due to automatic review settings October 24, 2026 00:07

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4dffd24a-2893-4b32-92cf-3d58113badc6
Commits

Reviewing files that changed from the base of the PR and between 45b39c4 and 50b08ec.

Files selected for processing: 2
  • tests/utils/test_atom_array_utils.py
  • tests/utils/test_atom_reconciler.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The PR updates atom-array utility tests to verify chain correspondence after reordering. It also changes atom-reconciler test data and assertions to check atom-name matching and the resulting model-coordinate tensor.

Changes: Atom correspondence tests

Layer / File(s) Summary
Chain correspondence after reordering
tests/utils/test_atom_array_utils.py
Tests compare chain IDs separately for chains A and B. The normalized common-atom test also checks that returned indices map to matching chain IDs in the original arrays.
Atom-name pairing in reconciler tests
tests/utils/test_atom_reconciler.py
The fixture changes atom order to expose positional cross-matching. The copy test checks the expected coordinates for matched atoms and the template values for unmatched model positions.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

  • prism-science/sampleworks#507: Updates chain and residue identifiers used by atom matching, which relates to these tests of chain correspondence and atom pairing.

Suggested reviewers: marcuscollins

Merge Risk: Minimal · up to 50b08

The updated tests pin the intended atom correspondence, with no identified issue that should delay merging.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: making chain and atom pairing explicit in atom reconciliation tests.
Docstring Coverage Passed Docstring coverage is 88.89% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 2 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch is waiting to be deployed

1 waiting deployment
gpu-testing — 50b08ec9 Waiting Oct 26, 2026 by k-chrispens via boltz-dev #987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants