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 warnings showing up in inference #27

Merged
merged 11 commits into from
Mar 1, 2023
Merged

Fix warnings showing up in inference #27

merged 11 commits into from
Mar 1, 2023

Conversation

lilyminium
Copy link
Collaborator

@lilyminium lilyminium commented Mar 1, 2023

Fixes #

Changes made in this Pull Request:

  • Fixes the setuptools namespacing of the package, which led to /Users/mattthompson/mambaforge/envs/nagl/lib/python3.10/site-packages/lightning_utilities/core/imports.py:13: UserWarning: Module openff was already imported from None, but /Users/mattthompson/software/openff-nagl is being added to sys.path import pkg_resources

  • Fixes the pytorch tensor warning, which led to /Users/mattthompson/software/openff-nagl/openff/nagl/molecule/_graph/_graph.py:165: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor). data = {k: torch.tensor(v[edge_indices.long()]) for k, v in self.edata.items()}

  • Relates to Expand GNNModel arguments and add load function #26

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

@lilyminium lilyminium merged commit caf0d39 into main Mar 1, 2023
@lilyminium lilyminium deleted the fix-warnings branch March 1, 2023 20:57
Comment on lines +49 to +54

[options]
packages = find_namespace:

[options.packages.find]
include = ["openff.*"]
Copy link
Member

Choose a reason for hiding this comment

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

Presumably one or both of these sections is what fixed the UserWarning: Module openff was already imported from None, warning? I assumed it was simply something weird on my local machine given that I do unholy things with local installs and don't look back ...

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