Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hierarchy scheme iterators to Topology #1661

Merged
merged 20 commits into from
Aug 22, 2023
Merged

Conversation

mattwthompson
Copy link
Member

@mattwthompson mattwthompson commented Jun 29, 2023

Resolves #1601

Possibly blocked by #1660, would be convenient for a path forward with #1659 to also be decided.

  • Tag issue being addressed
  • Add tests
    • Error if any molecule is misses requested iterator
    • Order hierarchy elements by molecule, then whatever sorting is defined by the scheme itself
    • Make no effort to sort between molecules
    • Error out if a name conflict with existing attributes is found
  • Update docstrings/documentation, if applicable
  • Lint codebase
  • Update changelog

@mattwthompson mattwthompson changed the title Add topology iterators Add hierarchy scheme iterators to Topology Jun 29, 2023
@mattwthompson mattwthompson added this to the 0.14.1 milestone Jun 29, 2023
@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Merging #1661 (faab121) into main (615320f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

@mattwthompson mattwthompson marked this pull request as ready for review June 30, 2023 18:06
Copy link
Member

@j-wags j-wags left a comment

Choose a reason for hiding this comment

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

Thanks for taking a stab at this - I hadn't appreciated how complex this would end up being. Left a few suggestions but overall this is on a good track.

openff/toolkit/_tests/test_topology.py Outdated Show resolved Hide resolved
openff/toolkit/topology/topology.py Outdated Show resolved Hide resolved
openff/toolkit/topology/topology.py Outdated Show resolved Hide resolved
openff/toolkit/topology/topology.py Outdated Show resolved Hide resolved
Copy link
Member

@j-wags j-wags left a comment

Choose a reason for hiding this comment

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

Excellent! Thanks @mattwthompson.

@j-wags j-wags merged commit 9163ebd into main Aug 22, 2023
16 checks passed
@j-wags j-wags deleted the add-topology-iterators branch August 22, 2023 00:17
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.

Add hierarchy iterators as attributes of Topology
2 participants