Skip to content

Commit a64ac97

Browse files
authored
Merge pull request #55 from mnlevy1981/pass_paths_via_config
Pass paths via config
2 parents 1a516b7 + 59f07cb commit a64ac97

File tree

8 files changed

+94
-313
lines changed

8 files changed

+94
-313
lines changed

README.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@ After the last step is finished, you can use Jupyter to view generated notebooks
6666
or you can copy the entire `${CUPID_ROOT}/examples/coupled-model/computed_notebooks/quick-run/_build/html`
6767
directory to your local machine and look at `index.html` in a web browser.
6868

69-
For users running on the NCAR super computers (derecho or casper), you can visualize the web page in a browser with the following steps:
70-
1. open a new browser window that points to https://fastx.ucar.edu:3300/session/
71-
1. open a default desktop icon
72-
1. select the browser client
73-
1. type `xterm` and hit enter to open a terminal
74-
1. In the terminal, run `cd ${CUPID_ROOT}/examples/coupled_model/computed_notebooks/quick-run/_build/html` to enter the `html` directory
75-
1. From the updated directory, run `firefox index.html &` to open a web browser pointed at the generated web page
69+
### Looking at Output
70+
71+
For users running on the NCAR super computers (derecho or casper), you can visualize the web page in a browser using the FastX service. FastX requires you to be on the internal NCAR network (either on-site or via the VPN, and can be accessed via the following steps:
72+
73+
1. Open a new browser window that points to https://fastx.ucar.edu:3300/session/
74+
1. Open a default desktop icon.
75+
1. Select the browser client.
76+
1. Type `xterm` and hit enter to open a terminal.
77+
1. In the terminal, run `cd ${CUPID_ROOT}/examples/coupled_model/computed_notebooks/quick-run/_build/html` to enter the `html` directory.
78+
1. From the updated directory, run `firefox index.html &` to open a web browser pointed at the generated web page.

cupid/run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def run():
7171
#####################################################################
7272
# Ploomber - making a DAG
7373

74-
dag = ploomber.DAG(executor=ploomber.executors.Parallel())
74+
dag = ploomber.DAG(executor=ploomber.executors.Serial())
7575

7676

7777
#####################################################################

examples/adf-only/config-adf-only.yml

-118
This file was deleted.

examples/coupled_model/config.yml

+23-12
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
data_sources:
88
# sname is any string used as a nickname for this configuration. It will be
99
### used as the name of the folder your computed notebooks are put in
10-
sname: &sname
11-
quick-run
10+
sname: quick-run
1211

1312
# run_dir is the path to the folder you want
1413
### all the files associated with this configuration
@@ -45,7 +44,7 @@ computation_config:
4544
# All parameters under global_params get passed to all the notebooks
4645

4746
global_params:
48-
test_global_param: hello
47+
CESM_output_dir: /glade/campaign/cesm/development/cross-wg/diagnostic_framework/CESM_output_for_testing
4948

5049
compute_notebooks:
5150

@@ -57,27 +56,39 @@ compute_notebooks:
5756
### notebook from nb_path_root, minus the .ipynb
5857
index:
5958
parameter_groups:
60-
none:
61-
sname: *sname
59+
none: {}
6260

6361
adf_quick_run:
6462
parameter_groups:
6563
none:
66-
sname: *sname
6764
adf_path: ../../externals/ADF
6865
config_path: .
6966
config_fil_str: "config_f.cam6_3_119.FLTHIST_ne30.r328_gamma0.33_soae.001.yaml"
7067

71-
surface:
68+
ocean_surface:
7269
parameter_groups:
7370
none:
74-
sname: *sname
71+
Case: b.e23_alpha16b.BLT1850.ne30_t232.054
72+
savefigs: False
73+
mom6_tools_config:
74+
start_date: '0091-01-01'
75+
end_date: '0101-01-01'
76+
Fnames:
77+
native: 'mom6.h.native.????-??.nc'
78+
static: 'mom6.h.static.nc'
79+
oce_cat: /glade/u/home/gmarques/libs/oce-catalogs/reference-datasets.yml
80+
7581

7682

77-
land_comparision:
83+
land_comparison:
7884
parameter_groups:
7985
none:
80-
sname: *sname
86+
cases:
87+
- ctsm51d159_f45_GSWP3_bgccrop_1850pAD
88+
- ctsm51d159_f45_GSWP3_bgccrop_1850pSASU
89+
type:
90+
- 1850pAD
91+
- 1850pSASU
8192

8293

8394
########### JUPYTER BOOK CONFIG ###########
@@ -109,11 +120,11 @@ book_toc:
109120

110121
- caption: Ocean
111122
chapters:
112-
- file: surface
123+
- file: ocean_surface
113124

114125
- caption: Land
115126
chapters:
116-
- file: land_comparision
127+
- file: land_comparison
117128

118129
#####################################
119130
# Keys for Jupyter Book _config.yml #

examples/nblibrary/adf_quick_run.ipynb

-1
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,6 @@
788788
"import matplotlib.pyplot as plt\n",
789789
"import xarray as xr\n",
790790
"import numpy as np\n",
791-
"import matplotlib.ticker as ticker\n",
792791
"from matplotlib.ticker import MultipleLocator\n",
793792
"from matplotlib.lines import Line2D\n",
794793
"\n",

examples/nblibrary/diag_config.yml

-50
This file was deleted.

0 commit comments

Comments
 (0)