-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fixed okwarning block warning #389
base: develop
Are you sure you want to change the base?
Conversation
import warnings | ||
|
||
warnings.filterwarnings( | ||
"ignore", | ||
message="DCDReader currently makes independent timesteps", | ||
category=DeprecationWarning, | ||
module="MDAnalysis.coordinates.DCD", | ||
) | ||
|
||
import MDAnalysis as mda | ||
|
||
MDAnalysis_version = mda.__version__ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain why this is necessary, wasn't the :okwarning:
below enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this part addresses the warning -
/home/runner/micromamba/envs/mda-user-guide/lib/python3.10/site-packages/MDAnalysis/coordinates/DCD.py:165: DeprecationWarning: DCDReader currently makes independent timesteps by copying self.ts while other readers update self.ts inplace. This behavior will be changed in 3.0 to be the same as other readers. Read more at https://github.com/MDAnalysis/mdanalysis/issues/3889 to learn if this change in behavior might affect you.
warnings.warn("DCDReader currently makes independent timesteps"
For solving this warning changing conf.py
file was needed.
Adding :okwarning:
helped to solve the other warning related to it.
This reverts commit 9b5b3e8.
Fixed okwarning block warning
Ignored
DCDReader currently makes independent timesteps
warning.Closes - #378
📚 Documentation preview 📚: https://mdanalysisuserguide--389.org.readthedocs.build/en/389/