CIME.hist_utils.copy_histfiles
- CIME.hist_utils.copy_histfiles(case, suffix, match_suffix=None)[source]
Copy the most recent batch of hist files in a case, adding the given suffix.
This can allow you to temporarily “save” these files so they won’t be blown away if you re-run the case.
- Args:
case (CIME.case.Case): The case containing the files you want to save suffix (str): The string suffix you want to add to saved files, this can be used to find them later.
- Returns:
- Tuple str, int: (comments, num_copied)
comments is a string containing the comments generated by this function num_copied is the number of files copied