Skip to content

Commit 57616e6

Browse files
authored
Merge pull request #153 from ESMValGroup/improve_recipe_output
Fix episode 4 and 5 regarding output of the recipes
2 parents 75763d6 + cc6cb75 commit 57616e6

12 files changed

+53
-195
lines changed

.github/workflows/recipes.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
- name: Cache conda
1313
uses: actions/cache@v1
1414
env:
15-
# Increase this value to reset cache if data/recipe_example.yml has not changed
15+
# Increase this value to reset cache if files/recipe_example.yml has not changed
1616
CACHE_NUMBER: 1
1717
with:
1818
path: ~/conda_pkgs_dir
19-
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('data/recipe_example.yml') }}
19+
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('files/recipe_example.yml') }}
2020
- uses: goanpeca/setup-miniconda@v1
2121
- name: Install esmvaltool
2222
run: conda install -n test -y -c esmvalgroup -c conda-forge esmvaltool-python
@@ -41,8 +41,8 @@ jobs:
4141
with:
4242
path: ~/default_inputpath
4343
key: ${{ runner.os }}-datasets-${{ env.CACHE_NUMBER }}-${{ hashFiles('data/dataset.urls') }}
44-
- name: Download dataset files for data/recipe_example.yml
44+
- name: Download dataset files for files/recipe_example.yml
4545
run: |
4646
head -4 data/dataset.urls | grep -v '#' | wget --input-file - --no-clobber --directory-prefix $HOME/default_inputpath/
47-
- name: Run data/recipe_example.yml
48-
run: $CONDA/envs/test/bin/esmvaltool run $PWD/data/recipe_example.yml
47+
- name: Run files/recipe_example.yml
48+
run: $CONDA/envs/test/bin/esmvaltool run $PWD/files/recipe_example.yml

_episodes/04-recipe.md

Lines changed: 42 additions & 184 deletions
Large diffs are not rendered by default.

_episodes/05-preprocessor.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ file afterwards. These do not need to be explicitly included in recipes.
8888

8989
> ## Exercise: Adding more preprocessor steps
9090
>
91-
> Edit the [example recipe](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/data/recipe_example.yml) to first change the variable to
91+
> Edit the [example recipe](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/files/recipe_example.yml) to first change the variable to
9292
> `thetao`, using only the years 2000-2005. Then add preprocessors to average over the latitude and longitude
9393
> dimensions and finally average over the depth. Now run the recipe.
9494
>
@@ -127,7 +127,7 @@ file afterwards. These do not need to be explicitly included in recipes.
127127
>> timeseries_diag:
128128
>> ```
129129
>>
130-
>> Complete recipe can be downloaded as [recipe_example_thetao.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/data/recipe_example_thetao.yml)
130+
>> Complete recipe can be downloaded as [recipe_example_thetao.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/files/recipe_example_thetao.yml)
131131
>{: .solution}
132132
{: .challenge}
133133

@@ -179,7 +179,7 @@ specific preprocessor which should be applied.
179179
> script: ocean/diagnostic_timeseries.py
180180
> ```
181181
>
182-
> Complete recipe can be downloaded as [recipe_example_thetao_thetaoga.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/data/recipe_example_thetao_thetaoga.yml)
182+
> Complete recipe can be downloaded as [recipe_example_thetao_thetaoga.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/files/recipe_example_thetao_thetaoga.yml)
183183
{: .solution}
184184

185185
>## Challenge : How to write a recipe with multiple preprocessors
@@ -282,7 +282,7 @@ specific preprocessor which should be applied.
282282
>> ```
283283
>>
284284
>> Complete recipe can be downloaded as
285-
>> [recipe_example_multi_preprocessors.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/data/recipe_example_multi_preprocessors.yml).
285+
>> [recipe_example_multi_preprocessors.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/files/recipe_example_multi_preprocessors.yml).
286286
> {: .solution}
287287
{: .challenge}
288288

@@ -331,7 +331,7 @@ simple preprocessor and diagnostic setup for that:
331331
> preprocessor: prep_regrid
332332
> scripts: null
333333
> ```
334-
> Complete recipe can be downloaded as [recipe_example_pr_tas.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/data/recipe_example_pr_tas.yml).
334+
> Complete recipe can be downloaded as [recipe_example_pr_tas.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/files/recipe_example_pr_tas.yml).
335335
>
336336
{: .solution}
337337

@@ -393,7 +393,7 @@ separate multimodel means for different CMIP5 datasets given the same variable.
393393
> There is no field called datasets anymore.
394394
> Also, note how multiple ensembles are added by using (1:2).
395395
> Complete recipe can be downloaded as
396-
> [recipe_example_tas_control_target.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/data/recipe_example_tas_control_target.yml).
396+
> [recipe_example_tas_control_target.yml](https://github.com/ESMValGroup/ESMValTool_Tutorial/blob/master/files/recipe_example_tas_control_target.yml).
397397
>
398398
{: .solution}
399399

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)