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

Fixed okwarning block warning #389

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

mhmohona
Copy link
Contributor

@mhmohona mhmohona commented Oct 13, 2024

Fixed okwarning block warning
Ignored DCDReader currently makes independent timesteps warning.

Closes - #378


📚 Documentation preview 📚: https://mdanalysisuserguide--389.org.readthedocs.build/en/389/

@RMeli
Copy link
Member

RMeli commented Oct 14, 2024

@mhmohona if you write "Close #378" instead of "Closes - #378" the issue will automatically close when the PR is merged, which is useful.

Comment on lines +18 to +30
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__

Copy link
Member

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?

Copy link
Contributor Author

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.

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