Skip to content

Commit

Permalink
Check for completeness file before loading (#521)
Browse files Browse the repository at this point in the history
* Check for completeness file before loading

* Change default fields
  • Loading branch information
bfhealy authored Dec 15, 2023
1 parent 65e25b3 commit 6a4295e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/generate_features_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6a4295e

Please sign in to comment.