Skip to content

Commit

Permalink
Remove md5sums.txt file after download (#1989)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrobarts authored Nov 25, 2024
1 parent 5d569dc commit ce5c975
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Wrappers/Python/cil/utilities/dataexample.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def download_data(cls, data_dir, prompt=True):
with ZipFile(os.path.join(data_dir, cls.ZIP_FILE), 'r') as zip_ref:
zip_ref.extractall(os.path.join(data_dir, cls.FOLDER))
os.remove(os.path.join(data_dir, cls.ZIP_FILE))
if os.path.exists(os.path.join(data_dir, 'md5sums.txt')):
os.remove(os.path.join(data_dir, 'md5sums.txt'))
return True

class BOAT(CILDATA):
Expand Down

0 comments on commit ce5c975

Please sign in to comment.