-
Notifications
You must be signed in to change notification settings - Fork 86
Fix OpenFF toolkit tests and compatibility #225
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
Conversation
mattwthompson
commented
Aug 9, 2022
- Attempts to ensure the OpenFF Toolkit is updated to the RC builds
- Attempts to fix tests relying on the toolkit (see Update for upcoming OpenFF Toolkit API breaks #191 (comment))
|
the "Install latest openff-toolkit" step brought in the right toolkit version, but it was not reflect in the "Conda Environment Information" step. I'm not exactly sure why, maybe some |
|
Ugh thanks for catching that! I've found that conda and mamba act differently when installing stuff and it is super annoying. I'm going to get the OE license working again in this repo which will speed tests up quite a bit, thanks for your help on this @mattwthompson |
|
Well it's an improvement over my previous idea of "trust me, no need to write tests" ! This might take me a few days of iterations to finish - handling both APIs will be larger in scope than I originally thought but I don't think significantly trickier. |
|
@mikemhenry I'm seeing some errors that don't match up with the code I've changed, like here: https://github.com/openmm/openmmforcefields/runs/7777051481?check_suite_focus=true#step:7:2424 which does not match up with my diff: https://github.com/openmm/openmmforcefields/pull/225/files#diff-8bf8dcfa6a7e99dc62374cfe0a1efab5c2e7b0f22fa1e86111b7fff3f71ced84R970-R972 for particle_index, particle in enumerate(molecule.particles):
# Create a new atom type for each atom in the molecule
paricle_indices = [particle_index]
+ element_symbol = particle.element.symbol if uses_old_api else particle.symbol
atom_type = etree.SubElement(atom_types, "Type", name=particle.typename,
- element=particle.element.symbol, mass=as_attrib(particle.element.mass))
+ element=element_symbol, mass=as_attrib(particle.element.mass))I don't think this would result of |
|
I know that we can't use I added some debugging to check to see if somehow we installed the package from some circular dependency, since I don't know how else the source wouldn't match the PR. |
|
The dependency loop is because of Espaloma: |
|
@mattwthompson I will get that dependency fixed on conda-forge soon ™️ |
|
@mattwthompson false alarm, |
Please feel free! IIUC, |
It does, but my hunch (this is after a glass of scotch) is that the way we are installing the package with I did check and https://github.com/conda-forge/openmmforcefields-feedstock/blob/main/recipe/meta.yaml doesn't pull in So I agree, for whatever reason we just need to make sure we uninstall |
|
Oh I think CI is going to fail since this is done on a fork and github wants to protect the secrets? |
|
I'll try moving this to a branch |
|
Thanks! I probably won't get to this until tomorrow so feel free to do whatever you need to |
|
Working on this in #227 instead |