"""Backwards-compatibility shim — use ``tctk.aou`` instead."""

import importlib as _importlib
import warnings as _warnings

_warnings.warn(
    "tctk.aou_tools is deprecated; use tctk.aou instead.",
    DeprecationWarning,
    stacklevel=2,
)

__all__ = ["Dsub", "SocioEconomicStatus", "Demographic", "GWAS"]

def __getattr__(name):
    _map = {
        "Dsub": ("tctk.aou.dsub", "Dsub"),
        "SocioEconomicStatus": ("tctk.aou.ses", "SocioEconomicStatus"),
        "Demographic": ("tctk.aou.demographic", "Demographic"),
        "GWAS": ("tctk.aou.gwas", "GWAS"),
    }
    if name in _map:
        mod_path, attr = _map[name]
        mod = _importlib.import_module(mod_path)
        return getattr(mod, attr)
    raise AttributeError(f"module 'tctk.aou_tools' has no attribute {name!r}")
