Skip to content

Commit 56ed624

Browse files
oestebanmatthew-brett
authored andcommitted
FIX: Wrong filename in script
1 parent b1f7f3e commit 56ed624

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/validate_data.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ def file_hash(filename):
2929

3030

3131
def validate_data(data_directory):
32-
""" Read ``data_hashes.txt`` file in `data_directory`, check hashes
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.
3336
3437
Parameters
3538
----------
3639
data_directory : str
37-
Directory containing data and ``data_hashes.txt`` file.
40+
Directory containing data and ``hash_list.txt`` file.
3841
3942
Returns
4043
-------
@@ -44,9 +47,9 @@ def validate_data(data_directory):
4447
------
4548
ValueError:
4649
If hash value for any file is different from hash value recorded in
47-
``data_hashes.txt`` file.
50+
``hash_list.txt`` file.
4851
"""
49-
# Read lines from ``data_hashes.txt`` file.
52+
# Read lines from ``hash_list.txt`` file.
5053
# Split into SHA1 hash and filename
5154
# Calculate actual hash for given filename.
5255
# If hash for filename is not the same as the one in the file, raise

0 commit comments

Comments
 (0)