Skip to content

Commit

Permalink
move replacement close to old
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Mar 29, 2024
1 parent a26fb97 commit 0a2461b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions pymatgen/analysis/local_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -3441,6 +3441,14 @@ def get_nn_info(self, structure: Structure, n: int):
return siw


@deprecated(
BrunnerNNReciprocal,
"Deprecated on 2024-03-29, to be removed on 2025-03-29.",
)
class BrunnerNN_reciprocal(BrunnerNNReciprocal):
pass


class BrunnerNNRelative(NearNeighbors):
"""
Determine coordination number using Brunner's algorithm which counts the
Expand Down Expand Up @@ -3513,6 +3521,14 @@ def get_nn_info(self, structure: Structure, n: int):
return siw


@deprecated(
BrunnerNNRelative,
"Deprecated on 2024-03-29, to be removed on 2025-03-29.",
)
class BrunnerNN_relative(BrunnerNNRelative):
pass


class BrunnerNNReal(NearNeighbors):
"""
Determine coordination number using Brunner's algorithm which counts the
Expand Down Expand Up @@ -3585,22 +3601,6 @@ def get_nn_info(self, structure: Structure, n: int):
return siw


@deprecated(
BrunnerNNReciprocal,
"Deprecated on 2024-03-29, to be removed on 2025-03-29.",
)
class BrunnerNN_reciprocal(BrunnerNNReciprocal):
pass


@deprecated(
BrunnerNNRelative,
"Deprecated on 2024-03-29, to be removed on 2025-03-29.",
)
class BrunnerNN_relative(BrunnerNNRelative):
pass


@deprecated(
BrunnerNNReal,
"Deprecated on 2024-03-29, to be removed on 2025-03-29.",
Expand Down

0 comments on commit 0a2461b

Please sign in to comment.