Skip to content

Commit

Permalink
Merge pull request #4707 from jedwards4b/add_timing_to_git
Browse files Browse the repository at this point in the history
Add timing to git
  • Loading branch information
jedwards4b authored Nov 19, 2024
2 parents 491d24a + ba999e9 commit 151ad3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CIME/get_timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from CIME.XML.standard_module_setup import *
from CIME.utils import safe_copy
from CIME.status import append_case_status

import datetime, re

Expand Down Expand Up @@ -928,3 +929,11 @@ def _getTiming(self, inst=0):
def get_timing(case, lid):
parser = _TimingParser(case, lid)
parser.getTiming()
if case._gitinterface:
case._gitinterface._git_command("add", "*." + lid)
append_case_status(
"",
"",
msg="Timing files created for run {}".format(lid),
gitinterface=case._gitinterface,
)
2 changes: 1 addition & 1 deletion CIME/non_py/cprnc

0 comments on commit 151ad3a

Please sign in to comment.