mdacli icon indicating copy to clipboard operation
mdacli copied to clipboard

Ignore warnings

Open PicoCentauri opened this issue 1 month ago • 2 comments

Currently, MDAnalysis raises a couple of warnings that are unrelated for a user:

This module was moved to MDAnalysis.analysis.hydrogenbonds.hbond_autocorrel; hbonds.hbond_autocorrel will be removed in 3.0.0.
Please install the mdahole2 mdakit to use it in MDAnalysis.
More details can be found here: https://www.mdanalysis.org/mdahole2/getting_started.html
Please install the PathSimAnalysis mdakit to use it in MDAnalysis.
More details can be found here: https://www.mdanalysis.org/PathSimAnalysis/getting_started.html
Please install the waterdynamics mdakit to use it in MDAnalysis.
More details can be found here: https://www.mdanalysis.org/waterdynamics/getting_started.html

We should suppress them.

PicoCentauri avatar Nov 17 '25 14:11 PicoCentauri

yeah these warning always pops up for every command. Working on it!!

spyke7 avatar Nov 21 '25 07:11 spyke7

I'm using warnings Please install the mdahole2 mdakit to use it in MDAnalysis. More details can be found here: https://www.mdanalysis.org/mdahole2/getting_started.html Please install the PathSimAnalysis mdakit to use it in MDAnalysis. More details can be found here: https://www.mdanalysis.org/PathSimAnalysis/getting_started.html Please install the waterdynamics mdakit to use it in MDAnalysis. More details can be found here: https://www.mdanalysis.org/waterdynamics/getting_started.html

These are UserWarning category and I was able to suppress them

But This module was moved to MDAnalysis.analysis.hydrogenbonds.hbond_autocorrel; hbonds.hbond_autocorrel will be removed in 3.0.0., this is from which category? Can you please tell..

And I have run - warnings.simplefilter("ignore") and got this - {path}: DeprecationWarning: This module was moved to MDAnalysis.analysis.hydrogenbonds.hbond_autocorrel; hbonds.hbond_autocorrel will be removed in 3.0.0. warnings.warn(wmsg, category=DeprecationWarning) {path}: UserWarning: Please install the mdahole2 mdakit to use it in MDAnalysis. More details can be found here: https://www.mdanalysis.org/mdahole2/getting_started.html warnings.warn(wmsg, category=UserWarning) {path}: UserWarning: Please install the PathSimAnalysis mdakit to use it in MDAnalysis. More details can be found here: https://www.mdanalysis.org/PathSimAnalysis/getting_started.html warnings.warn(wmsg, category=UserWarning) {path}: UserWarning: Please install the waterdynamics mdakit to use it in MDAnalysis. More details can be found here: https://www.mdanalysis.org/waterdynamics/getting_started.html warnings.warn(wmsg, category=UserWarning)

Instead of showing the whole folder destination I have written path, the main thing to notice is that other warnings are UserWarning, but the first one is DeprecationWarning, even when I'm giving the category as that, it still shows the first line..

Should I just give the plain message to the filterwarning function

spyke7 avatar Nov 21 '25 18:11 spyke7

Closed by #129

PicoCentauri avatar Dec 02 '25 08:12 PicoCentauri