8000 Normalizing indexing production. Numpy version 2 compatibility. by ijpulidos · Pull Request #813 · choderalab/openmmtools · GitHub
[go: up one dir, main page]

Skip to content

Normalizing indexing production. Numpy version 2 compatibility. - #813

Merged
ijpulidos merged 3 commits into
mainfrom
mixing-npy2-compat
Aug 20, 2026
Merged

ijpulidos merged 3 commits into
mainfrom
mixing-npy2-compat

Conversation

@ijpulidos
@ijpulidos ijpulidos commented Aug 14, 2026 •
Copy link
Copy Markdown
Contributor

These simple changes avoid having unnecessary multidimensional numpy arrays as index bookeeping objects, making the code compatible with numpy2 but also simplifying the containers. Replica states array are one-dimensional, so we shouldn't need multidimensionality here.

Fixes errors seen in https://github.com/choderalab/openmmtools/actions/runs/31440306877/job/93841613709?pr=812

Todos

  • Implement feature / fix bug
  • Add tests
  • Update documentation as needed
  • Update changelog to summarize changes in behavior, enhancements, and bugfixes implemented in this PR

Status

  • Ready to go

Changelog message

Numpy2 compatibility by normalizing replica mixing indexing production. Avoids unnecessary multidimensional arrays.

@ijpulidos ijpulidos changed the title Normalizing indexing production Normalizing indexing production. Numpy version 2 compatibility. Aug 14, 2026
@ijpulidos
ijpulidos requested a review from mikemhenry August 14, 2026 20:52
@codecov
codecov Bot commented Aug 14, 2026 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.77%. Comparing base (ba4031d) to head (8754a17).

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mikemhenry
Copy link
Copy Markdown
Contributor

Much more simple, thank you! Can you update the repo settings to remove the old checks and add the new ones?

@ijpulidos
ijpulidos merged commit b2c9089 into main Aug 20, 2026
29 of 30 checks passed
@ijpulidos
ijpulidos deleted the mixing-npy2-compat branch August 20, 2026 03:37
@ijpulidos ijpulidos added this to the 0.27.0 milestone Sep 9, 2026
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

0