Skip to content

Commit 3701b9d

Browse files
committed
tests: add basic import test (check pytest)
1 parent 6d4f1ea commit 3701b9d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

aeon/dj_pipeline/analysis/block_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ def calculate_running_preference(group, pref_col, out_col):
11801180
# Figure 8 - Weighted patch preference: weighted by 'wheel_dist_spun : pel_ct' ratio
11811181
# ---
11821182
# Create multi-indexed dataframe with weighted distance for each subject-patch pair
1183-
pel_patches = [p for p in patch_names if "dummy" not in p.lower()] # exclude dummy patches
1183+
pel_patches = [p for p in patch_names if "base" not in p.lower()] # exclude base patches
11841184
data = []
11851185
for patch in pel_patches:
11861186
for subject_name in subject_names:

tests/base/test_imports.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""Test basic imports."""
2+
3+
4+
def test_api_imports():
5+
from swc.aeon.io import api as io_api # noqa: PLC0415
6+
7+
assert hasattr(io_api, "load")
8+

0 commit comments

Comments
 (0)