Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/test_stump.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import functools
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) # Add parent directory to path

import naive
import numpy as np
import numpy.testing as npt
import pandas as pd
Expand All @@ -10,6 +12,11 @@
from stumpy import config, rng
from stumpy.stump import stump

# Ensure naive module is available
import naive
if not hasattr(naive, 'stump'):
raise ImportError('naive module is not properly initialized. Please run pytest from the repository root or ensure tests/naive is in PYTHONPATH.')

test_data = [
(
np.array([9, 8100, -60, 7], dtype=np.float64),
Expand Down