-
Notifications
You must be signed in to change notification settings - Fork 209
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
T018: warning fixes / molecule images not showing #347
Merged
mbackenkoehler
merged 7 commits into
dev
from
334-t018-deprecation-warnings-and-images-not-showing
May 15, 2023
Merged
T018: warning fixes / molecule images not showing #347
mbackenkoehler
merged 7 commits into
dev
from
334-t018-deprecation-warnings-and-images-not-showing
May 15, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mbackenkoehler
added
bug
Something isn't working
work in progress
Work still ongoing
labels
May 2, 2023
Currently, the code snippet `import pypdb; from biopandas.pdb import PandasPdb` raises DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. pd_version = LooseVersion(pd.__version__). This is raised by `biopandas`, but only after importing `pypdb`. importing any of the two separately doesn't raise a warning. This is probably due to `pypdb` setting some global variables (for Pandas?) that then raise a warning from `biopandas`. Before applying the ultimate solution updating dependencies, for now, changing the order suppresses the warning.
This was an inconsequential bug that caused the PDB file to be downloaded twice. With this fix, it is only downloaded once.
This requires a newer version of RDKit, thus the pinned version was removed from `test_env.yml`; this still doesn't update RDKit to the latest version, due to pinning in other dependencies. Note that for this fix to work, you have to recreate your environment with the new `test_env.yml`, or update RDKit manually.
The warning "MDAnalysis/coordinates/PDB.py:1129: UserWarning: Found no information for attr: 'formalcharges' Using default value of '0'" is caused by MDAnalysis, which is used by OpenCADD, which is used in the `extract_molecule_from_pdb_file` function in `utils/helpers/pdb.py`. Cause of the warning is that formal charges are not present in the PDB file. This is a common situation since many PDB files don't have formal charges assigned. However, this pinned version of MDAnalysis raises a warning in these situations, which is now suppressed by a context manager in this commit
@AndreaVolkamer, @mbackenkoehler, is my update to this PR description correct? |
dominiquesydow
changed the title
T018 warning fixes / molecule images not showing
T018: warning fixes / molecule images not showing
May 11, 2023
…ings-and-images-not-showing T018: deprecation warnings and images not showing (#334)
Corresponding changes in other notebooks will follow in a separate PR |
mbackenkoehler
deleted the
334-t018-deprecation-warnings-and-images-not-showing
branch
May 16, 2023 12:23
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR collects changes to solve #334