Skip to content

Commit

Permalink
buildnml prism version loop comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaganKing authored Apr 26, 2023
1 parent 9c0d3dc commit cd96aac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion datm/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ def _get_neon_data_availability(case, neonsite):
dataversions = [dataversion]

for version in dataversions:
if not newestdate:
# Once a date range for a version has been determined for any version, the loop is complete.
# Eg, if data is available for v3, the loop will not continue to v2;
# however, if data is not available for v3, it will check for v2.
# Thus, it is important for dataversions to be listed from newest to oldest.
if not newestdate:
with open(fullpath, "r") as fd:
for line in fd.readlines():
fpath, fname = os.path.split(line)
Expand Down

0 comments on commit cd96aac

Please sign in to comment.