Skip to content

Commit d35f5c7

Browse files
committed
Use file checking util for source files
Refs: NOAA-EMC#1
1 parent 989bffc commit d35f5c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ush/global_det/global_det_atmos_util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ def prep_prod_ghrsst_ospo_file(source_file, dest_file, date_dt,
888888
prepped_file = os.path.join(os.getcwd(), 'atmos.'
889889
+source_file.rpartition('/')[2])
890890
# Prep file
891-
if os.path.exists(source_file):
891+
if check_file_exists_size(source_file):
892892
copy_file(source_file, prepped_file)
893893
else:
894894
log_missing_file_truth(log_missing_file, source_file,
@@ -920,7 +920,7 @@ def prep_prod_get_d_file(source_file, dest_file, date_dt,
920920
prepped_file = os.path.join(os.getcwd(), 'atmos.'
921921
+source_file.rpartition('/')[2])
922922
# Prep file
923-
if os.path.exists(source_file):
923+
if check_file_exists_size(source_file):
924924
copy_file(prepped_file, dest_file)
925925
else:
926926
log_missing_file_truth(log_missing_file, source_file,

0 commit comments

Comments
 (0)