Skip to content

Commit

Permalink
Add deprecation warning for guessers
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay committed Oct 24, 2024
1 parent a4b884c commit 15d7f7d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package/MDAnalysis/topology/guessers.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@
from . import tables


wmsg = (
"Deprecated in version 2.8.0\n"
"MDAnalysis.topology.guessers is deprecated in favour of "
"the new Guessers API and will be removed in MDAnalysis version 3.0.0. "
"See MDAnalysis.guesser.default_guesser for more details."
)


warnings.warn(wmsg, category=DeprecationWarning)


def guess_masses(atom_types):
"""Guess the mass of many atoms based upon their type
Expand Down

0 comments on commit 15d7f7d

Please sign in to comment.