Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove daysback option #160

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ jobs:

# Run tests
- run:
name: test ds000246
name: test ds003129
command: |
export DS=ds000246
export DS=ds003129
python tests/run_tests.py ${DS}
mkdir ~/reports/${DS}
cp ~/mne_data/${DS}/derivatives/mne-study-template/*/**/*_report.html ~/reports/${DS}/
Expand Down
3 changes: 0 additions & 3 deletions 01-import_and_maxfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,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
6 changes: 0 additions & 6 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@

subjects_dir = None

# ``daysback`` : int
# If not None apply a time shift to dates to adjust for limitateions
# of fif files

daysback = None

# ``interactive`` : boolean
# If True, the scripts will provide some interactive elements, such as
# figures. If running the scripts from a notebook or Spyder,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
study_name = 'ds000246'
study_name = 'ds003129'
runs = ['01']
l_freq = .3
h_freq = 100.
Expand All @@ -9,4 +9,3 @@
conditions = ['standard', 'deviant', 'button']
contrasts = [('deviant', 'standard')]
decode = True
daysback = -365 * 110
5 changes: 3 additions & 2 deletions tests/download_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def _provide_testing_data(dataset=None):
'https://github.com/sappelhoff/eeg_matchingpennies'),
# Anonymized "somato" dataset.
'ds003104': 'https://github.com/OpenNeuroDatasets/ds003104',
'ds000246': 'https://github.com/OpenNeuroDatasets/ds000246',
# Re-anonymized "ds000246" dataset.
'ds003129': 'https://github.com/OpenNeuroDatasets/ds003129',
'ds000248': 'https://github.com/OpenNeuroDatasets/ds000248',
'ds000117': 'https://github.com/OpenNeuroDatasets/ds000117',
'ds001810': 'https://github.com/OpenNeuroDatasets/ds001810',
Expand All @@ -34,7 +35,7 @@ def _provide_get_dict(dataset=None):
'eeg_matchingpennies': ['sub-05'],
'ds003104': ['sub-01',
'derivatives/freesurfer/subjects'],
'ds000246': ['sub-0001/meg/sub-0001_task-AEF_run-01_meg.ds',
'ds003129': ['sub-0001/meg/sub-0001_task-AEF_run-01_meg.fif',
'sub-0001/meg/sub-0001_task-AEF_run-01_meg.json',
'sub-0001/meg/sub-0001_task-AEF_run-01_channels.tsv'],
'ds000248': ['sub-01', 'sub-emptyroom',
Expand Down
2 changes: 1 addition & 1 deletion tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def report():
DATA_DIR = op.join(op.expanduser('~'), 'mne_data')

TEST_SUITE = {
'ds000246': ('config_ds000246', sensor, report),
'ds003129': ('config_ds003129', sensor, report),
'ds000248': ('config_ds000248', sensor, source, report),
'ds001810': ('config_ds001810', sensor, report),
'eeg_matchingpennies': ('config_eeg_matchingpennies', sensor, report),
Expand Down