We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114db74 commit c8494d8Copy full SHA for c8494d8
README.md
@@ -42,9 +42,9 @@ identified as an outlier. 0 refers to the first volume. For example (these
42
outlier IDs are completely random, for illustration):
43
44
```
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
+data/sub-01/func/sub-01_task-taskzero_run-01_bold.nii.gz, 3, 21, 22, 104
+data/sub-01/func/sub-01_task-taskzero_run-02_bold.nii.gz, 11, 33, 91
+data/sub-03/func/sub-03_task-taskzero_run-02_bold.nii.gz, 101, 102, 132
+data/sub-08/func/sub-08_task-taskzero_run-01_bold.nii.gz, 0, 1, 2, 166, 167
+data/sub-09/func/sub-08_task-taskzero_run-01_bold.nii.gz, 3
50
scripts/validate_data.py
@@ -5,7 +5,7 @@
5
python3 scripts/validata_data.py data
6
"""
7
8
-import os
+import os.path as op
9
import sys
10
import hashlib
11
@@ -29,15 +29,12 @@ def file_hash(filename):
29
30
31
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.
+ """ Read ``data_hashes.txt`` file in ``data_directory``, check hashes
36
37
Parameters
38
----------
39
data_directory : str
40
- Directory containing data and ``hash_list.txt`` file.
+ Directory containing data and ``data_hashes.txt`` file.
41
Returns
-------
@@ -47,9 +44,9 @@ def validate_data(data_directory):
------
ValueError:
If hash value for any file is different from hash value recorded in
- ``hash_list.txt`` file.
+ ``data_hashes.txt`` file.
51
52
- # Read lines from ``hash_list.txt`` file.
+ # Read lines from ``data_hashes.txt`` file.
53
# Split into SHA1 hash and filename
54
# Calculate actual hash for given filename.
55
# If hash for filename is not the same as the one in the file, raise
0 commit comments