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

Fix #234 #235

Merged
merged 4 commits into from Mar 21, 2023
Merged

Fix #234 #235

merged 4 commits into from Mar 21, 2023

Conversation

j-wags
Copy link
Member

@j-wags j-wags commented Mar 3, 2023

Description

In openforcefield/openff-toolkit#1498 we introduced helpful logic to reindex the keys for any values in offmol.properties['atom_map'] so that they correspond to the new ordering. It turns out that BespokeFit ALSO did this, leading to a double-reindexing, which the tests caught and are warning us about. This can be fixed by removing the now-redundant logic from BespokeFit.

Todos

Status

  • Ready to go

@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Merging #235 (91c0875) into main (1b87638) will decrease coverage by 0.95%.
The diff coverage is 100.00%.

Additional details and impacted files

@mattwthompson
Copy link
Member

Naively this looks like the fix for #234?

@j-wags j-wags changed the title Fix #237 Fix #234 Mar 3, 2023
@j-wags
Copy link
Member Author

j-wags commented Mar 3, 2023

Hard to tell if this is a case of too much coffee or too little 🤦

Copy link
Contributor

@jthorton jthorton left a comment

Choose a reason for hiding this comment

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

Great catch @j-wags this makes sense to me!

@jthorton jthorton mentioned this pull request Mar 15, 2023
3 tasks
Copy link
Contributor

@Yoshanuikabundi Yoshanuikabundi left a comment

Choose a reason for hiding this comment

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

Thanks @j-wags! This is a good catch, but I think we need a slight tweak to support both Toolkit 0.11 and 0.12.

openff/bespokefit/utilities/molecule.py Outdated Show resolved Hide resolved
@Yoshanuikabundi Yoshanuikabundi added this to the v0.2.1 milestone Mar 16, 2023
@mattwthompson
Copy link
Member

If both minor versions of the toolkit must be supported, should those be added as separate versions in CI?

@j-wags
Copy link
Member Author

j-wags commented Mar 16, 2023

I've added the suggested changes - I think this should be good for another look now!

Re: Testing against earlier versions - yeah, that'd be nice, but as you imply it's also be impractical. This solution seems elegant to me because it simply overwrites the changed behavior with exactly the desired logic. I'd trust this to work on the old version without adding CI testing.

I'd have been slightly in favor of pinning openff-toolkit>=0.12.1 in the package recipe, but I'm not the owner and this is also a fine resolution.

Copy link
Contributor

@Yoshanuikabundi Yoshanuikabundi left a comment

Choose a reason for hiding this comment

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

Perfect, thanks!

I feel like supporting 0.11 and 0.12 just keeps our options open.

@jthorton jthorton mentioned this pull request Mar 20, 2023
3 tasks
@Yoshanuikabundi
Copy link
Contributor

Hey @j-wags is there something holding this up? It's blocking testing on a number of other PRs so I think I'll merge it myself tomorrow if I don't hear back :)

@Yoshanuikabundi
Copy link
Contributor

The integration tests will be fixed in #243 so don't worry about green checks :)

@j-wags j-wags merged commit 2af0a1a into main Mar 21, 2023
3 of 6 checks passed
@j-wags
Copy link
Member Author

j-wags commented Mar 21, 2023

Sorry for the delay - merged!

@mattwthompson mattwthompson deleted the fix-234 branch March 22, 2023 15:02
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.

Failing tests
4 participants