From a7da85f640d401831ed17e08d3914138c7a80062 Mon Sep 17 00:00:00 2001 From: hrobarts Date: Wed, 13 Nov 2024 09:09:10 +0000 Subject: [PATCH] Remove md5sums.txt file after download --- Wrappers/Python/cil/utilities/dataexample.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Wrappers/Python/cil/utilities/dataexample.py b/Wrappers/Python/cil/utilities/dataexample.py index 1acdf66411..32dc35071d 100644 --- a/Wrappers/Python/cil/utilities/dataexample.py +++ b/Wrappers/Python/cil/utilities/dataexample.py @@ -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):