From 8f607027a1676843289e97e13d93f624ca1a9f6d Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Thu, 23 Feb 2023 11:14:59 -0800 Subject: [PATCH] fix get_zfile() refactor caused raise FileNotFoundError(f"Could not find {base_name} or {base_name}.gz file.") FileNotFoundError: Could not find INCAR or INCAR.gz file. --- src/atomate2/common/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atomate2/common/files.py b/src/atomate2/common/files.py index f44e8b0c11..ee24495a72 100644 --- a/src/atomate2/common/files.py +++ b/src/atomate2/common/files.py @@ -357,7 +357,7 @@ def get_zfile( found, then ``None`` will be returned. """ for file in directory_listing: - if base_name in [file.name, file.name + ".gz", file.name + ".GZ"]: + if file.name in [base_name, base_name + ".gz", base_name + ".GZ"]: return file if allow_missing: