Skip to content

Commit 2507fe9

Browse files
committed
updating comments
1 parent e26251f commit 2507fe9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

helpers/aggregate_parallel_files.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ def aggregate_prep():
213213
Prepares aggregated files based on the current state of the output.
214214
215215
This function determines the latest aggregated file, checks if the current
216-
output is from a restarted run, and adjusts the aggregated files accordingly.
216+
netcdff output is from a restarted run. If from restarted run will remove
217+
aggregated files from that restarted_from data onward, otherwise let the
218+
user know if files are not from a restarted run or if they do not have the
219+
restarted_from attribute.
217220
218221
Returns:
219222
None
@@ -232,7 +235,8 @@ def aggregate_prep():
232235
agg_files.sort()
233236

234237
remove_from_file = None
235-
# if output files not from a restarted run, remove all existing aggregated files
238+
# only remove aggregate files from "restarted_from" date onward, otherwise
239+
# print warnings
236240
if restarted_from == 'Not Restarted':
237241
print("Note: output files not from a restart run")
238242
# print("Outputted files not from restart run, removing all aggregated files")

0 commit comments

Comments
 (0)