Skip to content

Commit

Permalink
Move data directory out of src
Browse files Browse the repository at this point in the history
  • Loading branch information
ibevers committed Sep 16, 2024
1 parent d4a4563 commit c928e92
Show file tree
Hide file tree
Showing 75 changed files with 5 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_bids_like_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def test_get_instrument_for_name():


def test_redcap_to_bids():
# Path to the actual CSV file
csv_file_path = Path("src/b2aiprep/data/sdv_redcap_synthetic_data_1000_rows.csv")
project_root = Path(__file__).parent.parent
csv_file_path = project_root / "data/sdv_redcap_synthetic_data_1000_rows.csv"

# Check if the file exists before proceeding
if not csv_file_path.exists():
Expand Down
4 changes: 3 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import shutil
import subprocess
import tempfile
from pathlib import Path

import pytest

Expand All @@ -10,7 +11,8 @@
def setup_temp_files():
"""Fixture to set up temporary directories and files for testing."""
# Paths to required data files
redcap_csv_source = "src/b2aiprep/data/sdv_redcap_synthetic_data_1000_rows.csv"
project_root = Path(__file__).parent.parent
redcap_csv_source = project_root / "data/sdv_redcap_synthetic_data_1000_rows.csv"

with (
tempfile.TemporaryDirectory() as audio_dir,
Expand Down

0 comments on commit c928e92

Please sign in to comment.