From 7bc19aea9db3ef2b235cc334a13a9a1aff039a08 Mon Sep 17 00:00:00 2001 From: Yi Wang <35645723+wangyi111@users.noreply.github.com> Date: Fri, 2 Jun 2023 18:43:46 +0200 Subject: [PATCH] fix downloading success check bug (#1388) * fix downloading success check bug * fix downloading success check bug * simplify fix Co-authored-by: Adam J. Stewart --------- Co-authored-by: Adam J. Stewart --- experiments/ssl4eo/download_ssl4eo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experiments/ssl4eo/download_ssl4eo.py b/experiments/ssl4eo/download_ssl4eo.py index 69b67eb0a..ae312e63a 100755 --- a/experiments/ssl4eo/download_ssl4eo.py +++ b/experiments/ssl4eo/download_ssl4eo.py @@ -515,7 +515,7 @@ if __name__ == "__main__": # add to existing checked locations with open(ext_path, "a") as f: writer = csv.writer(f) - if patches is not None: + if patches: success = 1 else: success = 0