diff --git a/tools/generate_features_slurm.py b/tools/generate_features_slurm.py index 0ccd9c8..d6f47c4 100755 --- a/tools/generate_features_slurm.py +++ b/tools/generate_features_slurm.py @@ -87,7 +87,7 @@ def check_quads_for_sources( missing_ccd_quad = np.zeros(len(fields), dtype=bool) field_dct = {} - if save: + if save and (os.path.isfile(BASE_DIR / f'{filename}.json')): with open(BASE_DIR / f'{filename}.json', 'r') as f: field_dct = json.load(f)