зеркало из https://github.com/microsoft/torchgeo.git
fix downloading success check bug (#1388)
* fix downloading success check bug * fix downloading success check bug * simplify fix Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> --------- Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Родитель
0a564dd4b2
Коммит
7bc19aea9d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче