Skip to content

Commit dc6c844

Browse files
authored
Extra ACCESS-OM2 QA metadata tests (#149)
* Add metadata model name tests to ACCESS-OM2 QA tests * Add metadata notes test to ACCESS-OM2 QA tests to check for updated conditions of use
1 parent 0f598c7 commit dc6c844

3 files changed

Lines changed: 39 additions & 15 deletions

File tree

src/model_config_tests/config_tests/qa/test_access_om2_config.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@
4242
ACCESS_OM2_REPOSITORY_NAME = "ACCESS-OM2"
4343
ACCESS_OM2_BGC_REPOSITORY_NAME = "ACCESS-OM2-BGC"
4444

45+
# Expected metadata notes with conditions of use
46+
EXPECTED_METADATA_NOTES = """COSIMA request that users of this or other ACCESS-OM2 model code or output data:
47+
(a) add a project description to COSIMA's list:
48+
https://docs.google.com/spreadsheets/d/18BDyZlHTSy6EOaf_5o9CwGBOu4pBj88XsS2vNW4R_2o
49+
(b) consider citing Kiss et al. (2020) [http://doi.org/10.5194/gmd-13-401-2020] and papers describing relevant
50+
configuration updates - see https://forum.access-hive.org.au/t/access-om2-control-experiments/258
51+
(c) include an acknowledgement such as that suggested here: https://cosima.org.au/index.php/get-involved/
52+
(d) let COSIMA know of any publications which use these models or data so they can add them to their list:
53+
https://scholar.google.com/citations?hl=en&user=inVqu_4AAAAJ
54+
(e) Tell ACCESS-NRI that you are using ACCESS-NRI infrastructure: https://www.access-nri.org.au/resources/user-reporting/"""
55+
56+
# Expected metadata model name
57+
EXPECTED_METADATA_MODEL = "ACCESS-OM2"
58+
4559

4660
class AccessOM2Branch:
4761
"""Use the naming patterns of the branch name to infer information of
@@ -207,3 +221,13 @@ def test_access_om2_manifest_exe_in_release_spack_location(
207221
control_path=control_path,
208222
config=config,
209223
)
224+
225+
def test_access_om2_metadata_model(self, metadata):
226+
assert (
227+
"model" in metadata and metadata["model"] == EXPECTED_METADATA_MODEL
228+
), f"Expected metadata model field set to: {EXPECTED_METADATA_MODEL}"
229+
230+
def test_access_om2_metadata_notes(self, metadata):
231+
assert "notes" in metadata and metadata["notes"] == EXPECTED_METADATA_NOTES, (
232+
"Expected metadata notes field set to:\n" + EXPECTED_METADATA_NOTES
233+
)

tests/resources/access-om2/configurations/dev-025deg_jra55_iaf_bgc/metadata.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ description: |-
1313
Spin up starts 1 Jan 1958 and runs to 1 Jan 2019.
1414
notes: |-
1515
COSIMA request that users of this or other ACCESS-OM2 model code or output data:
16-
(a) consider citing Kiss et al. (2020) [http://doi.org/10.5194/gmd-13-401-2020]
17-
(b) include an acknowledgement such as the following:
18-
"The authors thank the Consortium for Ocean-Sea Ice Modelling in Australia (COSIMA; http://www.cosima.org.au)
19-
for making the ACCESS-OM2 suite of models available at https://github.com/COSIMA/access-om2.
20-
Model runs were undertaken with the assistance of resources from the National Computational Infrastructure (NCI),
21-
which is supported by the Australian Government."
22-
(c) let COSIMA know of any publications which use these models or data so they can add them to their list:
16+
(a) add a project description to COSIMA's list:
17+
https://docs.google.com/spreadsheets/d/18BDyZlHTSy6EOaf_5o9CwGBOu4pBj88XsS2vNW4R_2o
18+
(b) consider citing Kiss et al. (2020) [http://doi.org/10.5194/gmd-13-401-2020] and papers describing relevant
19+
configuration updates - see https://forum.access-hive.org.au/t/access-om2-control-experiments/258
20+
(c) include an acknowledgement such as that suggested here: https://cosima.org.au/index.php/get-involved/
21+
(d) let COSIMA know of any publications which use these models or data so they can add them to their list:
2322
https://scholar.google.com/citations?hl=en&user=inVqu_4AAAAJ
23+
(e) Tell ACCESS-NRI that you are using ACCESS-NRI infrastructure: https://www.access-nri.org.au/resources/user-reporting/
2424
keywords:
2525
- JRA55
2626
- access-om2-025

tests/resources/access-om2/configurations/release-1deg_jra55_ryf/metadata.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ created: Add the date you started the experiment here (YYYY-MM-DD)
44
description: "1 degree ACCESS-OM2 global model configuration under the RYF9091 Repeat\nYear Forcing strategy outlined by Stewart et al. (2020), \nhttps://doi.org/10.1016/j.ocemod.2019.101557.\nThe configuration is based on that described in Kiss et al. (2020),\nhttps://doi.org/10.5194/gmd-13-401-2020, but with many improvements.\nInitial conditions are WOA13v2 potential temperature and practical salinity.\nRun with JRA55-do v1.4.0 RYF9091 (1 May 1990 - 30 April 1991) repeated forcing\nwith all solid runoff converted to liquid runoff with no heat transfer.\nSpin up starts from a nominal year of 1 Jan 1900."
55
notes: |-
66
COSIMA request that users of this or other ACCESS-OM2 model code or output data:
7-
(a) consider citing Kiss et al. (2020) [http://doi.org/10.5194/gmd-13-401-2020]
8-
(b) include an acknowledgement such as the following:
9-
"The authors thank the Consortium for Ocean-Sea Ice Modelling in Australia (COSIMA; http://www.cosima.org.au)
10-
for making the ACCESS-OM2 suite of models available at https://github.com/COSIMA/access-om2.
11-
Model runs were undertaken with the assistance of resources from the National Computational Infrastructure (NCI),
12-
which is supported by the Australian Government."
13-
(c) let COSIMA know of any publications which use these models or data so they can add them to their list:
7+
(a) add a project description to COSIMA's list:
8+
https://docs.google.com/spreadsheets/d/18BDyZlHTSy6EOaf_5o9CwGBOu4pBj88XsS2vNW4R_2o
9+
(b) consider citing Kiss et al. (2020) [http://doi.org/10.5194/gmd-13-401-2020] and papers describing relevant
10+
configuration updates - see https://forum.access-hive.org.au/t/access-om2-control-experiments/258
11+
(c) include an acknowledgement such as that suggested here: https://cosima.org.au/index.php/get-involved/
12+
(d) let COSIMA know of any publications which use these models or data so they can add them to their list:
1413
https://scholar.google.com/citations?hl=en&user=inVqu_4AAAAJ
14+
(e) Tell ACCESS-NRI that you are using ACCESS-NRI infrastructure: https://www.access-nri.org.au/resources/user-reporting/
1515
keywords:
1616
- JRA55
1717
- access-om2
@@ -23,6 +23,6 @@ realm:
2323
nominal_resolution: 100 km
2424
reference: https://doi.org/10.5194/gmd-13-401-2020
2525
license: CC-BY-4.0
26-
model: access-om2
26+
model: ACCESS-OM2
2727
version: "2.0"
2828
url: https://github.com/ACCESS-NRI/access-om2-configs/tree/release-1deg_jra55_ryf

0 commit comments

Comments
 (0)