Skip to content

Commit

Permalink
Remove anonymiztion option (#257)
Browse files Browse the repository at this point in the history
* Remove anonymization option

Closes #159, #160

* logger.warn -> logger.warning
  • Loading branch information
hoechenberger authored Feb 17, 2021
1 parent a976d60 commit 7ce9a9e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
11 changes: 0 additions & 11 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion docs/source/settings/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
::: config.bids_root
::: config.deriv_root
::: config.subjects_dir
::: config.daysback
::: config.interactive
::: config.crop
::: config.sessions
Expand Down
5 changes: 1 addition & 4 deletions scripts/preprocessing/01-import_and_maxfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion scripts/report/01-make_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion tests/configs/config_ds000246.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
conditions = ['standard', 'deviant', 'button']
contrasts = [('deviant', 'standard')]
decode = True
daysback = -365 * 110
on_error = 'debug'

0 comments on commit 7ce9a9e

Please sign in to comment.