Skip to content

Commit 3305cfd

Browse files
committed
regions -> region to be consistent with others
1 parent 19c4678 commit 3305cfd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/access/parsers/payujson_profiling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ def read(self, stream: str) -> dict:
5151
if unwanted_key in timings:
5252
del timings[unwanted_key]
5353

54-
result = {"regions": [], "walltime": []}
54+
result = {"region": [], "walltime": []}
5555

5656
# transpose dict to be consistent with other profiling parsers.
5757
for k, v in timings.items():
58-
result["regions"].append(k)
58+
result["region"].append(k)
5959
result["walltime"].append(v)
6060

6161
return result

tests/test_payujson_profiling.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
import pytest
5-
import datetime
65

76
from access.parsers.payujson_profiling import PayuJSONProfilingParser
87

@@ -17,7 +16,7 @@ def payujson_parser():
1716
def payujson_profiling():
1817
"""Fixture returning a dict holding the parsed FMS timing content without hits."""
1918
return {
20-
"regions": [
19+
"region": [
2120
"payu_setup_duration_seconds",
2221
"payu_model_run_duration_seconds",
2322
"payu_run_duration_seconds",

0 commit comments

Comments
 (0)