Skip to content

Commit 53220d8

Browse files
committed
fix load from dir
1 parent f4dd96e commit 53220d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eegdash/data_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def get_recordings(self, layout: BIDSLayout):
292292

293293
def get_relative_bidspath(self, filename):
294294
bids_parent_dir = self.bidsdir.parent
295-
return str(Path(filename).relative_to(bids_parent_dir))
295+
return str(Path(filename).relative_to(bids_parent_dir.absolute()))
296296

297297
def get_property_from_filename(self, property, filename):
298298
import platform

eegdash/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def get_base_dataset_from_bids_file(bids_dataset, bids_file):
397397
bids_dataset = EEGBIDSDataset(
398398
data_dir=data_dir,
399399
dataset=dataset,
400-
raw_format=raw_format,
400+
# raw_format=raw_format,
401401
)
402402
eegdashObj = EEGDash()
403403
datasets = Parallel(n_jobs=-1, prefer="threads", verbose=1)(

0 commit comments

Comments
 (0)