Skip to content

Commit 4501050

Browse files
authored
Merge pull request #1190 from PCMDI/clean_up_doc
Clean up doc
2 parents b1ad2b1 + dc1d015 commit 4501050

17 files changed

+31
-62
lines changed

.github/workflows/build_workflow.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,15 @@ jobs:
5454
- uses: actions/checkout@v3
5555

5656
- name: Set up Conda Environment
57-
uses: conda-incubator/setup-miniconda@v2
57+
uses: conda-incubator/setup-miniconda@v3
5858
with:
59-
activate-environment: "pcmdi_metrics_ci"
60-
miniforge-variant: Mambaforge
59+
miniforge-variant: Miniforge3
6160
miniforge-version: latest
61+
activate-environment: "pcmdi_metrics_ci"
6262
environment-file: conda-env/ci.yml
63-
use-mamba: true
64-
mamba-version: "*"
6563
channel-priority: strict
6664
auto-update-conda: true
65+
python-version: ${{ matrix.python-version }}
6766

6867
# Used for refreshing the cache every 24 hours to avoid inconsistencies of package
6968
# versions between the CI pipeline and local installations.
@@ -79,7 +78,7 @@ jobs:
7978
key:
8079
conda-${{ runner.os }}--${{ runner.arch }}--${{
8180
steps.get-date.outputs.today }}-${{
82-
hashFiles('conda-env/dev.yml') }}-${{ env.CACHE_NUMBER}}
81+
hashFiles('conda-env/ci.yml') }}-${{ env.CACHE_NUMBER}}
8382
env:
8483
# Increase this value to reset cache if conda/dev.yml has not changed in the workflow
8584
CACHE_NUMBER: 0
@@ -118,10 +117,10 @@ jobs:
118117
with:
119118
path: ~/conda_pkgs_dir
120119
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
121-
hashFiles('conda-env/ci.yml') }}
120+
hashFiles('conda-env/dev.yml') }}
122121

123122
- name: Set up Conda Environment
124-
uses: conda-incubator/setup-miniconda@v2
123+
uses: conda-incubator/setup-miniconda@v3
125124
with:
126125
activate-environment: "pcmdi_metrics_dev"
127126
miniforge-variant: Miniforge3

doc/jupyter/Demo/Demo_0_download_data.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"\n",
99
"Download sample data and set up parameter files\n",
1010
"\n",
11-
"This Notebook sets up the data for the other demos. It is recommended that you run this and other demos in a conda environment with **xcdat** and **pcmdi_metrics** installed."
11+
"This Notebook sets up the data for the other demos. It is recommended that you run this and other demos in a conda environment with **xcdat** and **pcmdi_metrics** installed. The files to download are listed in https://pcmdiweb.llnl.gov/pss/pmpdata/pmp_tutorial_files.v20240201.txt."
1212
]
1313
},
1414
{
@@ -52,7 +52,7 @@
5252
"cell_type": "markdown",
5353
"metadata": {},
5454
"source": [
55-
"In below cell, you are going to download sample input files from PCMDI server. The total size of dataset is about 2 GB, and so please be aware that downloading will take some time to complete. List of downloading files can be found in [`data_files.txt`](https://pcmdiweb.llnl.gov/pss/pmpdata/pmp_tutorial_files.v20240201.txt) file."
55+
"In below cell, you are going to download sample input files from PCMDI server. The total size of dataset is about 2 GB, and so please be aware that downloading will take some time to complete."
5656
]
5757
},
5858
{

doc/jupyter/Demo/Demo_5_mjo_metrics.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,6 @@
391391
"from IPython.display import Image\n",
392392
"Image(filename=demo_output_directory+\"/mjo/Ex2/cmip5_GISS-E2-H_historical_r6i1p1_mjo_2000-2005_NDJFMA_cmmGrid.png\")"
393393
]
394-
},
395-
{
396-
"cell_type": "code",
397-
"execution_count": null,
398-
"metadata": {},
399-
"outputs": [],
400-
"source": []
401394
}
402395
],
403396
"metadata": {

doc/jupyter/Demo/Demo_7_precip_variability.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -889,13 +889,6 @@
889889
" metric = json.load(f)[\"RESULTS\"]\n",
890890
"print(json.dumps(metric, indent=2))"
891891
]
892-
},
893-
{
894-
"cell_type": "code",
895-
"execution_count": null,
896-
"metadata": {},
897-
"outputs": [],
898-
"source": []
899892
}
900893
],
901894
"metadata": {

doc/jupyter/Demo/Demo_8_extremes.ipynb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,14 +2242,6 @@
22422242
"%%bash -s \"$demo_output_directory\"\n",
22432243
"rm -r $1/extremes_tmp"
22442244
]
2245-
},
2246-
{
2247-
"cell_type": "code",
2248-
"execution_count": null,
2249-
"id": "e8ff050a",
2250-
"metadata": {},
2251-
"outputs": [],
2252-
"source": []
22532245
}
22542246
],
22552247
"metadata": {

doc/jupyter/Demo/Demo_9_seaIceExtent_ivanova.ipynb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,14 +3013,6 @@
30133013
"<a href=Demo_9_seaIceExtent_ivanova.ipynb#top>Go back to Top</a>\n",
30143014
"</div>"
30153015
]
3016-
},
3017-
{
3018-
"cell_type": "code",
3019-
"execution_count": null,
3020-
"id": "e3b50c5e",
3021-
"metadata": {},
3022-
"outputs": [],
3023-
"source": []
30243016
}
30253017
],
30263018
"metadata": {

docs/demo-notebooks.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ Basic Usage Examples
5454
examples/parallel_coordinate_plot_example
5555
examples/taylor_diagram_example
5656

57-
Real World Use Cases
58-
^^^^^^^^^^^^^^^^^^^^
57+
Practical Use Cases
58+
^^^^^^^^^^^^^^^^^^^
5959

6060
.. nbgallery::
6161

@@ -65,4 +65,5 @@ Real World Use Cases
6565
examples/parallel_coordinate_plot_mean_clim_multiMIPs
6666
examples/taylor_diagram_multiple_CMIPs
6767
examples/mean_clim_plots_test_model
68-
examples/variability_modes_plots_all-stats
68+
examples/variability_modes_plots_all-stats
69+
examples/return_value_portrait_plot_demo

docs/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,28 +81,28 @@ BSD 3-Clause License. See `LICENSE <https://github.com/PCMDI/pcmdi_metrics/blob/
8181
.. toctree::
8282
:maxdepth: 1
8383
:hidden:
84-
:caption: For users:
84+
:caption: For users
8585

8686
overview
8787
start
8888
metrics
8989
demo-notebooks
90-
Results <https://pcmdi.llnl.gov/research/metrics/>
9190

9291
.. toctree::
9392
:maxdepth: 1
9493
:hidden:
95-
:caption: For developers/contributors:
94+
:caption: For developers/contributors
9695

9796
api
9897
contributing
9998
resources
10099
team
101-
GitHub repository <https://github.com/PCMDI/pcmdi_metrics>
102100

103101
.. toctree::
104102
:maxdepth: 1
105103
:hidden:
106-
:caption: Community
104+
:caption: Links
107105

108-
GitHub discussions <https://github.com/PCMDI/pcmdi_metrics/discussions>
106+
PMP Results <https://pcmdi.llnl.gov/research/metrics/>
107+
Source Code <https://github.com/PCMDI/pcmdi_metrics>
108+
Discussions <https://github.com/PCMDI/pcmdi_metrics/discussions>

docs/metrics_enso.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ Additional Resources
3939
.. _Description for the results: https://pcmdi.llnl.gov/metrics/enso/
4040
.. _Description for included metrics: https://github.com/CLIVAR-PRP/ENSO_metrics/wiki
4141
.. _Interactive graphics for PMP-calculated ENSO Metrics: https://pcmdi.llnl.gov/pmp-preliminary-results/interactive_plot/portrait_plot/enso_metric/enso_metrics_interactive_portrait_plots_v20210723.html
42-
.. _PMP demo Jupyter notebook: https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_6_ENSO.ipynb
42+
.. _PMP demo Jupyter notebook: examples/Demo_6_ENSO.html

docs/metrics_ext.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Demo
1313
=====
1414
* `PMP demo Jupyter notebook`_
1515

16-
.. _PMP demo Jupyter notebook: https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_8_extremes.ipynb
16+
.. _PMP demo Jupyter notebook: examples/Demo_8_extremes.html
1717

1818
* `Extremes Portrait Plot demo Jupyter notebook`_
1919

20-
.. _Extremes Portrait Plot demo Jupyter notebook: https://github.com/PCMDI/pcmdi_metrics/blob/main/pcmdi_metrics/graphics/portrait_plot/return_value_portrait_plot_demo.ipynb
20+
.. _Extremes Portrait Plot demo Jupyter notebook: examples/return_value_portrait_plot_demo
2121

2222
Inputs
2323
========

0 commit comments

Comments
 (0)