diff --git a/config.py b/config.py index b5ec7db2d..a7b4e4741 100644 --- a/config.py +++ b/config.py @@ -64,17 +64,6 @@ $SUBJECTS_DIR used by the Freesurfer software. """ -daysback: Optional[int] = None -""" -warning: - This parameter will soon be removed! - Anonymization should be done on the BIDS dataset **before** running - the Study Template! - -If not ``None``, apply a time shift to dates to adjust for limitateions -of FIFF files. -""" - interactive: bool = False """ If True, the scripts will provide some interactive elements, such as diff --git a/docs/source/settings/general.md b/docs/source/settings/general.md index 7e491fa53..44a919d90 100644 --- a/docs/source/settings/general.md +++ b/docs/source/settings/general.md @@ -2,7 +2,6 @@ ::: config.bids_root ::: config.deriv_root ::: config.subjects_dir -::: config.daysback ::: config.interactive ::: config.crop ::: config.sessions diff --git a/scripts/preprocessing/01-import_and_maxfilter.py b/scripts/preprocessing/01-import_and_maxfilter.py index 27283bf6f..e09abbdbd 100644 --- a/scripts/preprocessing/01-import_and_maxfilter.py +++ b/scripts/preprocessing/01-import_and_maxfilter.py @@ -82,7 +82,7 @@ def rename_events(raw, subject, session): f'they are not present in the BIDS input data:\n' f'{", ".join(sorted(list(events_not_in_raw)))}') if config.on_rename_missing_events == 'warn': - logger.warn(msg) + logger.warning(msg) else: raise ValueError(msg) @@ -211,9 +211,6 @@ def load_data(bids_path): raw = read_raw_bids(bids_path=bids_path, extra_params=extra_params) - if config.daysback is not None: - raw.anonymize(daysback=config.daysback) - if subject != 'emptyroom': # Crop the data. if config.crop is not None: diff --git a/scripts/report/01-make_reports.py b/scripts/report/01-make_reports.py index 3fe67e698..7726426c7 100644 --- a/scripts/report/01-make_reports.py +++ b/scripts/report/01-make_reports.py @@ -437,7 +437,7 @@ def add_event_counts(*, df_events = count_events(BIDSPath(root=config.bids_root, session=session)) except ValueError: - logger.warn('Could not read events.') + logger.warning('Could not read events.') df_events = None if df_events is not None: diff --git a/tests/configs/config_ds000246.py b/tests/configs/config_ds000246.py index 260d5823f..5f814951f 100644 --- a/tests/configs/config_ds000246.py +++ b/tests/configs/config_ds000246.py @@ -15,5 +15,4 @@ conditions = ['standard', 'deviant', 'button'] contrasts = [('deviant', 'standard')] decode = True -daysback = -365 * 110 on_error = 'debug'