# legacy_test/core/dtw_metrics.py
"""DTW-based similarity metrics — imported from reproduce/core/ for consistency."""

import os
import sys

_REPO = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..", ".."))
_SRC = os.path.join(_REPO, "src")
for p in [_REPO, _SRC]:
    if p not in sys.path:
        sys.path.insert(0, p)

# Re-export from the verified reproduce/core/dtw_metrics module.
from drl_pinball.reproduce.core.dtw_metrics import (  # noqa: E402, F401
    calc_lag,
    calc_dtw_sim,
    calc_dtw_sim_enhanced,
    compute_similarity_karman_cloak,
    compute_similarity_vortex,
    compute_similarity_illusion,
    analyze_harmonics,
    gen_target_states_at,
)
