Skip to content

Commit c8494d8

Browse files
committed
Prepare for Fall 2022 version of course
1 parent 114db74 commit c8494d8

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ identified as an outlier. 0 refers to the first volume. For example (these
4242
outlier IDs are completely random, for illustration):
4343

4444
```
45-
data/group-01/sub-01/func/sub-01_task-taskzero_run-01_bold.nii.gz, 3, 21, 22, 104
46-
data/group-01/sub-01/func/sub-01_task-taskzero_run-02_bold.nii.gz, 11, 33, 91
47-
data/group-01/sub-03/func/sub-03_task-taskzero_run-02_bold.nii.gz, 101, 102, 132
48-
data/group-01/sub-08/func/sub-08_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 166, 167
49-
data/group-01/sub-09/func/sub-08_task-taskzero_run-01_bold.nii.gz, 3
45+
data/sub-01/func/sub-01_task-taskzero_run-01_bold.nii.gz, 3, 21, 22, 104
46+
data/sub-01/func/sub-01_task-taskzero_run-02_bold.nii.gz, 11, 33, 91
47+
data/sub-03/func/sub-03_task-taskzero_run-02_bold.nii.gz, 101, 102, 132
48+
data/sub-08/func/sub-08_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 166, 167
49+
data/sub-09/func/sub-08_task-taskzero_run-01_bold.nii.gz, 3
5050
```

scripts/validate_data.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
python3 scripts/validata_data.py data
66
"""
77

8-
import os
8+
import os.path as op
99
import sys
1010
import hashlib
1111

@@ -29,15 +29,12 @@ def file_hash(filename):
2929

3030

3131
def validate_data(data_directory):
32-
""" Read ``hash_list.txt`` file in ``data_directory``, check hashes
33-
34-
An example file ``data_hashes.txt`` is found in the baseline version
35-
of the repository template for your reference.
32+
""" Read ``data_hashes.txt`` file in ``data_directory``, check hashes
3633
3734
Parameters
3835
----------
3936
data_directory : str
40-
Directory containing data and ``hash_list.txt`` file.
37+
Directory containing data and ``data_hashes.txt`` file.
4138
4239
Returns
4340
-------
@@ -47,9 +44,9 @@ def validate_data(data_directory):
4744
------
4845
ValueError:
4946
If hash value for any file is different from hash value recorded in
50-
``hash_list.txt`` file.
47+
``data_hashes.txt`` file.
5148
"""
52-
# Read lines from ``hash_list.txt`` file.
49+
# Read lines from ``data_hashes.txt`` file.
5350
# Split into SHA1 hash and filename
5451
# Calculate actual hash for given filename.
5552
# If hash for filename is not the same as the one in the file, raise

0 commit comments

Comments
 (0)