import warnings
from . import BondAnalysisModifier

# Patch the constructor to emit a future warning.
_original_init = BondAnalysisModifier.__init__

def _warn_init(self, *args, **kwargs):
    warnings.warn(
        "BondAnalysisModifier is deprecated and will be removed in a future version. "
        "Please use BondLengthDistributionModifier and BondAngleDistributionModifier instead.",
        FutureWarning,
        stacklevel=2
    )
    _original_init(self, *args, **kwargs)

BondAnalysisModifier.__init__ = _warn_init