Skip to content

Commit

Permalink
Merge pull request ESMCI#3451 from jedwards4b/check_inputdata_fix
Browse files Browse the repository at this point in the history
fix issue with pop input files that should not be found
  • Loading branch information
jedwards4b authored Mar 13, 2020
2 parents 3444503 + 2bb547b commit 5d9ff80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/lib/CIME/case/check_input_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def check_input_data(case, protocol="svn", address=None, input_data_root=None, d

model = os.path.basename(data_list_file).split('.')[0]

if ("/" in rel_path and rel_path == full_path):
if ("/" in rel_path and rel_path == full_path and not full_path.startswith('unknown')):
# User pointing to a file outside of input_data_root, we cannot determine
# rel_path, and so cannot download the file. If it already exists, we can
# proceed
Expand All @@ -352,7 +352,7 @@ def check_input_data(case, protocol="svn", address=None, input_data_root=None, d
# value and ignore it (perhaps with a warning)
isdirectory=rel_path.endswith(os.sep)

if ("/" in rel_path and not os.path.exists(full_path)):
if ("/" in rel_path and not os.path.exists(full_path) and not full_path.startswith('unknown')):
logger.warning(" Model {} missing file {} = '{}'".format(model, description, full_path))
no_files_missing = False
if (download):
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/CIME/case/preview_namelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def create_namelists(self, component=None):
run_sub_or_cmd(cmd, (caseroot), "buildnml",
(self, caseroot, compname), case=self)

logger.info("Finished creating component namelists, component {} models = {}".format(component, models))
logger.debug("Finished creating component namelists, component {} models = {}".format(component, models))

# Save namelists to docdir
if (not os.path.isdir(docdir)):
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/CIME/hist_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def copy_histfiles(case, suffix):
num_copied += len(test_hists)
for test_hist in test_hists:
test_hist = os.path.join(rundir,test_hist)
if not test_hist.endswith('.nc'):
if not test_hist.endswith('.nc') or 'once' in os.path.basename(test_hist):
logger.info("Will not compare non-netcdf file {}".format(test_hist))
continue
new_file = "{}.{}".format(test_hist, suffix)
Expand Down

0 comments on commit 5d9ff80

Please sign in to comment.