Skip to content

Commit

Permalink
Update paths for oxygen hindcast runs
Browse files Browse the repository at this point in the history
The paths for storing and accessing Tall & Susan's oxygen hindcast
files have been updated across multiple files. This includes changes in the
configuration file, and test files.
  • Loading branch information
douglatornell committed May 19, 2024
1 parent 4166cfa commit f010da8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions config/nowcast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ results archive:
nowcast-green: /results2/SalishSea/nowcast-green.202111/
nowcast-agrif: /results/SalishSea/nowcast-agrif.201702/
hindcast:
localhost: /ocean/sallen/timbucktwo/rivers/
localhost: /ocean/sallen/timbucktwo/oxygen/
robot.graham: /nearline/rrg-allen/SalishSea/nowcast-green.202111/


# Config for archival storage of month-long tarballs of results
# Config for archival storage for month-long tarballs of results
# on a remote host; e.g. graham:/nearline/
results tarballs:
# Should hindcast results be archived?
Expand Down Expand Up @@ -744,7 +744,7 @@ run:
# Comma separated list of compute host user ids to use in queue and accounting queries
users: sallen,dlatorne
# Directory on compute host where temporary run directories and run results are stored
scratch dir: /scratch/sallen/dlatorne/rivers/
scratch dir: /scratch/sallen/dlatorne/oxygen/
# Directory on compute host where files (e.g. namelist.time) necessary to prepare
# the NEMO runs are stored
run prep dir: /home/sallen/dlatorne/SalishSeaCast/hindcast-sys/runs
Expand All @@ -764,7 +764,7 @@ run:
run types:
hindcast:
# Directory on compute host where results are stored
results: /scratch/sallen/dlatorne/rivers/
results: /scratch/sallen/dlatorne/oxygen/

sockeye-hindcast:
ssh key: SalishSeaNEMO-nowcast_id_rsa
Expand Down
2 changes: 1 addition & 1 deletion tests/workers/test_archive_tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def test_results_archive(self, run_type, results_path, prod_config):
assert prod_config["results archive"][run_type] == results_path

def test_hindcast_results_archive(self, prod_config):
expected = "/ocean/sallen/timbucktwo/rivers/"
expected = "/ocean/sallen/timbucktwo/oxygen/"
assert prod_config["results archive"]["hindcast"]["localhost"] == expected

@pytest.mark.parametrize(
Expand Down
4 changes: 2 additions & 2 deletions tests/workers/test_download_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def test_enabled_host_run_types(self, host, run_types, prod_config):
"hindcast hosts",
"optimum-hindcast",
"hindcast",
"/scratch/sallen/dlatorne/rivers/",
"/scratch/sallen/dlatorne/oxygen/",
),
(
"hindcast hosts",
Expand All @@ -259,7 +259,7 @@ def test_results_archive(self, prod_config):
"nowcast-green": "/results2/SalishSea/nowcast-green.202111/",
"nowcast-agrif": "/results/SalishSea/nowcast-agrif.201702/",
"hindcast": {
"localhost": "/ocean/sallen/timbucktwo/rivers/",
"localhost": "/ocean/sallen/timbucktwo/oxygen/",
"robot.graham": "/nearline/rrg-allen/SalishSea/nowcast-green.202111/",
},
}
Expand Down
2 changes: 1 addition & 1 deletion tests/workers/test_run_NEMO_hindcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_optimum_hindcast_section(self, prod_config):
assert optimum_hindcast["ssh key"] == "SalishSeaNEMO-nowcast_id_rsa"
assert optimum_hindcast["queue info cmd"] == "/usr/bin/qstat"
assert optimum_hindcast["users"] == "sallen,dlatorne"
assert optimum_hindcast["scratch dir"] == "/scratch/sallen/dlatorne/rivers/"
assert optimum_hindcast["scratch dir"] == "/scratch/sallen/dlatorne/oxygen/"
assert (
optimum_hindcast["run prep dir"]
== "/home/sallen/dlatorne/SalishSeaCast/hindcast-sys/runs"
Expand Down
2 changes: 1 addition & 1 deletion tests/workers/test_split_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_results_archive(self, prod_config):
"nowcast-green": "/results2/SalishSea/nowcast-green.202111/",
"nowcast-agrif": "/results/SalishSea/nowcast-agrif.201702/",
"hindcast": {
"localhost": "/ocean/sallen/timbucktwo/rivers/",
"localhost": "/ocean/sallen/timbucktwo/oxygen/",
"robot.graham": "/nearline/rrg-allen/SalishSea/nowcast-green.202111/",
},
}
Expand Down
2 changes: 1 addition & 1 deletion tests/workers/test_watch_NEMO_hindcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_optimum_hindcast_section(self, prod_config):
assert optimum_hindcast["ssh key"] == "SalishSeaNEMO-nowcast_id_rsa"
assert optimum_hindcast["queue info cmd"] == "/usr/bin/qstat"
assert optimum_hindcast["users"] == "sallen,dlatorne"
assert optimum_hindcast["scratch dir"] == "/scratch/sallen/dlatorne/rivers/"
assert optimum_hindcast["scratch dir"] == "/scratch/sallen/dlatorne/oxygen/"


@pytest.mark.parametrize("host_name", ("cedar", "optimum"))
Expand Down

0 comments on commit f010da8

Please sign in to comment.