Skip to content

Commit 9202ad4

Browse files
Merge pull request #93 from EcoExtreML/add_doc_nb
Add an example notebook to run the model with global data
2 parents e97a9f6 + 2309bb7 commit 9202ad4

5 files changed

Lines changed: 702 additions & 9 deletions

docs/installation_instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ installed there. See [Install PyStemmusScope](#install-pystemmusscope).
2323

2424
## On your own machine
2525

26-
Choose how do you want to run the model, see [Run the model](notebooks/run_model_in_notebook.ipynb).
26+
Choose how do you want to run the model, see [Run the model](notebooks/run_model_on_different_infra.ipynb).
2727

2828
## Install PyStemmusScope
2929

@@ -59,7 +59,7 @@ jupyter lab
5959

6060
JupyterLab will open automatically in your browser. Now, you can run the
6161
notebook
62-
[run_model_in_notebook.ipynb](https://github.com/EcoExtreML/STEMMUS_SCOPE_Processing/blob/main/docs/notebooks/run_model_in_notebook.ipynb).
62+
[run_model_on_different_infra.ipynb](https://github.com/EcoExtreML/STEMMUS_SCOPE_Processing/blob/main/docs/notebooks/run_model_on_different_infra.ipynb).
6363

6464
## Install MATLAB Runtime
6565

docs/notebooks/run_model_in_notebook.ipynb renamed to docs/notebooks/run_model_on_different_infra.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"cell_type": "markdown",
66
"metadata": {},
77
"source": [
8-
"# Running the STEMMUS_SCOPE model\n",
9-
"## Which options are available?\n",
10-
"This notebook shows steps to run the STEMMUS_SCOPE model, including preprocessing and postprocessing. STEMMUS_SCOPE files are located in a **private** repository https://github.com/EcoExtreML/STEMMUS_SCOPE. To clone the repository locally and access the files, make sure you have right access to the repository. Then specify the path to a config file e.g.`config_file_template.txt`, executable file `STEMMUS_SCOPE` or source code `STEMMUS_SCOPE/src` in the cells below. There are already config files for users on Snellius and CRIB, see `config_file_snellius.txt`, `config_file_crib.txt`. Choose how do you want to run the model:\n",
8+
"# Running the STEMMUS_SCOPE model on a system\n",
9+
"\n",
10+
"This notebook shows steps to run the STEMMUS_SCOPE model, including preprocessing and postprocessing. STEMMUS_SCOPE files are located in a repository https://github.com/EcoExtreML/STEMMUS_SCOPE. Then specify the path to a config file e.g.`config_file_template.txt`, executable file `STEMMUS_SCOPE` or source code `STEMMUS_SCOPE/src` in the cells below. There are already config files for users on Snellius and CRIB, see `config_file_snellius.txt`, `config_file_crib.txt`. Depending on your system (OS, Matlab availability, etc.), there are a few ways you can run the model. Choose how do you want to run the model:\n",
1111
"\n",
1212
"\n",
1313
"[**Executable file**](#1-using-executable-file)\n",
@@ -229,7 +229,7 @@
229229
"cell_type": "markdown",
230230
"metadata": {},
231231
"source": [
232-
"Perform <echo $DISPLAY> in a terminal in the Remote Desktop (of Crib Platform), and check the output (should be similar to :1.0 ). Then execute the following line accordingly."
232+
"&emsp; If you are on CRIB, to use Jupyter interface and MATLAB license manager at the same time, first perform <echo $DISPLAY> in a terminal in the Remote Desktop of Crib Platform, and check the output which should be similar to :1.0 . Then execute the following line accordingly."
233233
]
234234
},
235235
{
@@ -238,6 +238,7 @@
238238
"metadata": {},
239239
"outputs": [],
240240
"source": [
241+
"# For CRIB users\n",
241242
"%env DISPLAY=:1.0"
242243
]
243244
},
@@ -398,7 +399,7 @@
398399
],
399400
"metadata": {
400401
"kernelspec": {
401-
"display_name": "pyss_octave",
402+
"display_name": "Python 3 (ipykernel)",
402403
"language": "python",
403404
"name": "python3"
404405
},
@@ -412,7 +413,7 @@
412413
"name": "python",
413414
"nbconvert_exporter": "python",
414415
"pygments_lexer": "ipython3",
415-
"version": "3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:50:36) [MSC v.1929 64 bit (AMD64)]"
416+
"version": "3.10.13"
416417
},
417418
"vscode": {
418419
"interpreter": {

0 commit comments

Comments
 (0)