Skip to content

Commit

Permalink
Move import statement into function so imports resolve when modules a…
Browse files Browse the repository at this point in the history
…re loaded
  • Loading branch information
tennlee committed Aug 24, 2023
1 parent 5c386f6 commit d8863fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scores/stats/tests/diebold_mariano_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from scores.utils import dims_complement

from scores.stats.tests.acovf import acovf



def diebold_mariano(
Expand Down Expand Up @@ -294,6 +294,7 @@ def _hg_method_stat(diffs: np.ndarray, h: int) -> float:
Returns:
Diebold-Mariano test statistic using the HG method.
"""
from scores.stats.tests.acovf import acovf
n = len(diffs)

# use an exponential model for autocovariances of `diffs`
Expand Down

0 comments on commit d8863fe

Please sign in to comment.