File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ def get_job_runtime(log_text: Sequence[str]) -> tuple[float, str]:
4444
4545 Args:
4646 log_text: is the job's log file contents as a list of lines.
47- tool: is the EDA tool used to run the job.
4847
4948 Returns:
5049 a tuple of (runtime, units).
5150
51+ Raises:
52+ RuntimeError: exception if the search pattern is not found.
53+
5254 """
5355 ...
5456
@@ -65,7 +67,7 @@ def get_simulated_time(log_text: Sequence[str]) -> tuple[float, str]:
6567 log_text: is the job's log file contents as a list of lines.
6668
6769 Returns:
68- the simulated, units as a tuple .
70+ a tuple of (simulated time, units) .
6971
7072 Raises:
7173 RuntimeError: exception if the search pattern is not found.
Original file line number Diff line number Diff line change @@ -65,11 +65,13 @@ def get_job_runtime(log_text: Sequence[str]) -> tuple[float, str]:
6565
6666 Args:
6767 log_text: is the job's log file contents as a list of lines.
68- tool: is the EDA tool used to run the job.
6968
7069 Returns:
7170 a tuple of (runtime, units).
7271
72+ Raises:
73+ RuntimeError: exception if the search pattern is not found.
74+
7375 """
7476 pattern = r"^CPU [tT]ime:\s*(\d+\.?\d*?)\s*(seconds|minutes|hours).*$"
7577 for line in reversed (log_text ):
@@ -92,7 +94,7 @@ def get_simulated_time(log_text: Sequence[str]) -> tuple[float, str]:
9294 log_text: is the job's log file contents as a list of lines.
9395
9496 Returns:
95- the simulated, units as a tuple .
97+ a tuple of (simulated time, units) .
9698
9799 Raises:
98100 RuntimeError: exception if the search pattern is not found.
Original file line number Diff line number Diff line change @@ -93,11 +93,13 @@ def get_job_runtime(log_text: Sequence[str]) -> tuple[float, str]:
9393
9494 Args:
9595 log_text: is the job's log file contents as a list of lines.
96- tool: is the EDA tool used to run the job.
9796
9897 Returns:
9998 a tuple of (runtime, units).
10099
100+ Raises:
101+ RuntimeError: exception if the search pattern is not found.
102+
101103 """
102104 pattern = r"^TOOL:\s*xrun.*: Exiting on .*\(total:\s*(\d+):(\d+):(\d+)\)\s*$"
103105 for line in reversed (log_text ):
@@ -121,7 +123,7 @@ def get_simulated_time(log_text: Sequence[str]) -> tuple[float, str]:
121123 log_text: is the job's log file contents as a list of lines.
122124
123125 Returns:
124- the simulated, units as a tuple .
126+ a tuple of (simulated time, units) .
125127
126128 Raises:
127129 RuntimeError: exception if the search pattern is not found.
You can’t perform that action at this time.
0 commit comments