diff --git a/aeon/io/reader.py b/aeon/io/reader.py index e99db336..fbfbe1fe 100644 --- a/aeon/io/reader.py +++ b/aeon/io/reader.py @@ -312,7 +312,7 @@ def __init__(self, pattern: str, model_root: str = "/ceph/aeon/aeon/data/process def read(self, file: Path) -> pd.DataFrame: """Reads data from the Harp-binarized tracking file.""" # Get config file from `file`, then bodyparts from config file. - model_dir = Path(*Path(file.stem.replace("_", "/")).parent.parts[-4:]) + model_dir = Path(*Path(file.stem.replace("_", "/")).parent.parts[1:]) # Check if model directory exists in local or shared directories. # Local directory is prioritized over shared directory.