File tree 4 files changed +9
-47
lines changed
4 files changed +9
-47
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,20 @@ download_input_data:
5
5
./download_input_data.sh
6
6
7
7
test :
8
- docker/docker_run.sh \
8
+ docker run \
9
9
-v $(shell pwd) /input_data:/input_data \
10
10
-v $(shell pwd) /tests:/tests \
11
11
shield:main pytest -vv /tests/test_regression.py
12
12
13
13
test_regtest_reset :
14
- docker/docker_run.sh \
14
+ docker run \
15
15
-v $(shell pwd) /input_data:/input_data \
16
16
-v $(shell pwd) /tests:/tests \
17
17
shield:main pytest -vv /tests/test_regression.py --regtest-reset
18
18
19
19
enter :
20
- docker/docker_run.sh \
20
+ docker run \
21
+ -v $(shell pwd) /input_data:/input_data \
21
22
-v $(shell pwd) /tests:/tests \
22
23
-it shield:main bash
23
24
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ diag_table:
133
133
time_axis_name : time
134
134
time_axis_units : minutes
135
135
experiment_name : default
136
- field_table : gs://vcm-fv3config/config/field_table/TKE-EDMF/v1.1 /field_table
137
- forcing : gs://vcm-ml-experiments/spencerc/2023-09-13-SHiELD- forcing-data
138
- initial_conditions : gs://vcm-fv3config/data/ initial_conditions/gfs_c12_example/v1.0
136
+ field_table : /input_data /field_table
137
+ forcing : /input_data/ forcing
138
+ initial_conditions : /input_data/ initial_conditions
139
139
namelist :
140
140
fms_affinity_nml :
141
141
affinity : false
@@ -468,4 +468,4 @@ namelist:
468
468
stress_ratio : 1.0
469
469
use_old_mlm : true
470
470
use_rain_flux : true
471
- orographic_forcing : gs://vcm-fv3config/data/orographic_data/v1.0
471
+ orographic_forcing : /input_data/orographic_forcing
Original file line number Diff line number Diff line change 1
- import copy
2
1
import hashlib
3
2
import os
4
3
import shutil
12
11
13
12
14
13
CONFIG_DIR = Path (__file__ ).parent
15
- INPUT_DATA_DIR = CONFIG_DIR .parent / "input_data"
16
14
EXECUTABLE = Path ("/SHiELD/SHiELD_build/Build/bin/SHiELD_nh.prod.64bit.gnu.x" )
17
15
18
16
19
17
def get_config (filename ):
20
18
config_filename = CONFIG_DIR / filename
21
19
with open (config_filename , "r" ) as f :
22
- return prepare_config (fv3config .load (f ))
23
-
24
-
25
- def prepare_config (config : dict ) -> dict :
26
- """Convert GCS paths to local paths"""
27
- result = copy .deepcopy (config )
28
-
29
- forcing = INPUT_DATA_DIR / "forcing"
30
- orographic_forcing = INPUT_DATA_DIR / "orographic_forcing"
31
- initial_conditions = INPUT_DATA_DIR / "initial_conditions"
32
- field_table = INPUT_DATA_DIR / "field_table"
33
-
34
- result ["forcing" ] = forcing .as_uri ()
35
- result ["orographic_forcing" ] = orographic_forcing .as_uri ()
36
- result ["initial_conditions" ] = initial_conditions .as_uri ()
37
- result ["field_table" ] = field_table .as_uri ()
38
- return result
20
+ return fv3config .load (f )
39
21
40
22
41
23
def checksum_file (path : Path ) -> str :
You can’t perform that action at this time.
0 commit comments