diff --git a/pipe/pipe.py b/pipe/pipe.py index 1c76f83..fb24f0a 100644 --- a/pipe/pipe.py +++ b/pipe/pipe.py @@ -73,7 +73,7 @@ def spectrogram_pipe_matfiles(self, specpath: Path, labels:list, spectrograms = [] row = {} for label in labels: - matdata = sp.io.loadmat(specpath/label) + matdata = sp.io.loadmat(specpath/"matfiles"/label) row["treatment"] = matdata["header"][0][0][4][0].lower() try: row["target"] = matdata["header"][0][0][2][0].lower()