|
13 | 13 | "* You have the volumes setup as specified in the project's `docker-compose.yml` file and you can access the files both from your host computer and from within the docker container(s).\n",
|
14 | 14 | "* You have installed the Jupyter package and can run jupyter notebooks, specifically an `IPython` notebook.\n",
|
15 | 15 | "\n",
|
16 |
| - "> Note about packages and environments: the demo here shows a mixture of running dvm-dos-tem's supporting Python scripts \"natively\" (i.e. on your host computer, not in a Docker container) and running dvm-dos-tem's supporting Python scripts inside the Docker container. For the most consistent Python environment, it is best to run everyting through (inside) the Docker containers. However sometimes the extra typing required is onerous (`docker compose exec dvmdostem-run ...`), and there is a little extra overhead involved in interacting with the containers. So if you have the appropriate packages installed on your host machine you can run some of the scripts on your host as it shown here. This takes a little care to keep the paths straight for each command, i.e. whether you are referncing the path inside the guest/container, or on your host machine.\n", |
| 16 | + "> Note about packages and environments: the demo here shows a mixture of running dvm-dos-tem's supporting Python scripts \"natively\" (i.e. on your host computer, not in a Docker container) and running dvm-dos-tem's supporting Python scripts inside the Docker container. For the most consistent Python environment, it is best to run everyting through (inside) the Docker containers. However sometimes the extra typing required is onerous (`docker compose exec dvmdostem-dev ...`), and there is a little extra overhead involved in interacting with the containers. So if you have the appropriate packages installed on your host machine you can run some of the scripts on your host as it shown here. This takes a little care to keep the paths straight for each command, i.e. whether you are referncing the path inside the guest/container, or on your host machine.\n", |
17 | 17 | "\n",
|
18 | 18 | "> Note that while `dmvdostem`'s supporting scripts are largely written in Python, for the most part there is not an exposed Python API. Instead the scripts are generally provided with a command line interface. So much of this tutorial, while running inside an IPython notebook, could easily be run directly from your shell.\n",
|
19 | 19 | "\n",
|
|
70 | 70 | "outputs": [],
|
71 | 71 | "source": [
|
72 | 72 | "# Cleanup:\n",
|
73 |
| - "!docker compose exec dvmdostem-run rm -r /data/workflows/testcase_0001" |
| 73 | + "!docker compose exec dvmdostem-dev rm -r /data/workflows/testcase_0001" |
74 | 74 | ]
|
75 | 75 | },
|
76 | 76 | {
|
|
89 | 89 | }
|
90 | 90 | ],
|
91 | 91 | "source": [
|
92 |
| - "!docker compose exec dvmdostem-run scripts/setup_working_directory.py \\\n", |
| 92 | + "!docker compose exec dvmdostem-dev scripts/setup_working_directory.py \\\n", |
93 | 93 | "--input-data-path /data/input-catalog/cru-ts40_ar5_rcp85_ncar-ccsm4_TOOLIK_FIELD_STATION_10x10/ \\\n",
|
94 | 94 | "/data/workflows/testcase_0001"
|
95 | 95 | ]
|
|
144 | 144 | }
|
145 | 145 | ],
|
146 | 146 | "source": [
|
147 |
| - "!docker compose exec dvmdostem-run ls /data/workflows/testcase_0001" |
| 147 | + "!docker compose exec dvmdostem-dev ls /data/workflows/testcase_0001" |
148 | 148 | ]
|
149 | 149 | },
|
150 | 150 | {
|
|
266 | 266 | }
|
267 | 267 | ],
|
268 | 268 | "source": [
|
269 |
| - "!docker compose exec dvmdostem-run runmask-util.py --reset \\\n", |
| 269 | + "!docker compose exec dvmdostem-dev runmask-util.py --reset \\\n", |
270 | 270 | "--yx 0 0 \\\n",
|
271 | 271 | "--show \\\n",
|
272 | 272 | "/data/workflows/testcase_0001/run-mask.nc"
|
|
306 | 306 | }
|
307 | 307 | ],
|
308 | 308 | "source": [
|
309 |
| - "!docker compose exec dvmdostem-run outspec_utils.py -s /data/workflows/testcase_0001/config/output_spec.csv" |
| 309 | + "!docker compose exec dvmdostem-dev outspec_utils.py -s /data/workflows/testcase_0001/config/output_spec.csv" |
310 | 310 | ]
|
311 | 311 | },
|
312 | 312 | {
|
|
653 | 653 | }
|
654 | 654 | ],
|
655 | 655 | "source": [
|
656 |
| - "!docker compose exec dvmdostem-run outspec_utils.py \\\n", |
| 656 | + "!docker compose exec dvmdostem-dev outspec_utils.py \\\n", |
657 | 657 | "/data/workflows/testcase_0001/config/output_spec.csv \\\n",
|
658 | 658 | "--on GPP p m\n",
|
659 | 659 | "\n",
|
660 |
| - "!docker compose exec dvmdostem-run outspec_utils.py \\\n", |
| 660 | + "!docker compose exec dvmdostem-dev outspec_utils.py \\\n", |
661 | 661 | "/data/workflows/testcase_0001/config/output_spec.csv \\\n",
|
662 | 662 | "--on CMTNUM y\n"
|
663 | 663 | ]
|
|
1087 | 1087 | }
|
1088 | 1088 | ],
|
1089 | 1089 | "source": [
|
1090 |
| - "!docker compose exec --workdir /data/workflows/testcase_0001 dvmdostem-run \\\n", |
| 1090 | + "!docker compose exec --workdir /data/workflows/testcase_0001 dvmdostem-dev \\\n", |
1091 | 1091 | "dvmdostem -p 50 -e 200 -s 0 -t 0 -n 0 -l err --force-cmt 4"
|
1092 | 1092 | ]
|
1093 | 1093 | },
|
|
1117 | 1117 | }
|
1118 | 1118 | ],
|
1119 | 1119 | "source": [
|
1120 |
| - "!docker compose exec dvmdostem-run ls /data/workflows/testcase_0001/output" |
| 1120 | + "!docker compose exec dvmdostem-dev ls /data/workflows/testcase_0001/output" |
1121 | 1121 | ]
|
1122 | 1122 | },
|
1123 | 1123 | {
|
|
0 commit comments