You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then install the package (On Windows, use `python` instead of `python3`):
19
20
20
21
```sh
21
22
cd STEMMUS_SCOPE_Processing
22
-
pip install -e .
23
-
```
24
-
25
-
or
26
-
27
-
```sh
28
-
python setup.py develop
23
+
python3 -m install -e .[dev]
29
24
```
30
25
31
26
### Run tests
32
27
33
28
The testing framework used here is [PyTest](https://pytest.org). You can run
34
-
tests as:
29
+
tests as (On Windows, use `python` instead of `python3`):
35
30
36
31
```sh
37
-
pytest
32
+
python3 -m pytest
38
33
```
39
34
40
35
### Build documentation
@@ -65,80 +60,4 @@ isort
65
60
## Development of STEMMUS_SCOPE model
66
61
67
62
<!-- markdown-link-check-disable-next-line -->
68
-
To contribute to the STEMMUS_SCOPE model, you need access to the model source code that is stored in the repository [STEMMUS_SCOPE](https://github.com/EcoExtreML/STEMMUS_SCOPE). You also need a MATLAB license.
69
-
70
-
### Development on Snellius using MATLAB
71
-
72
-
[Snellius](https://servicedesk.surfsara.nl/wiki/display/WIKI/Snellius) is the
73
-
Dutch National supercomputer hosted at SURF. MATLAB `2021a` is installed on
The script `run_jupyter_lab_snellius_dev.sh` activates the conda environment `pystemmusscope` and creates a jupyter lab server on Snellius for running the notebook
79
-
interactively. Make sure that you create the `pystemmusscope` conda environment before submitting the the bash script. See **Create pystemmusscope environment** below.
# Create a conda environment called 'pystemmusscope' with all required dependencies
99
-
mamba env create -f environment.yml
100
-
101
-
# The environment can be activated with
102
-
.~/mamba/bin/activate pystemmusscope
103
-
104
-
```
105
-
</details>
106
-
107
-
108
-
### Development on CRIB using MATLAB
109
-
110
-
[CRIB](https://crib.utwente.nl/) is the ITC Geospatial Computing Platform.
111
-
112
-
MATLAB `2021a` is installed on CRIB, and supports Python `3.8`, see [Versions of Python Compatible with MATLAB Products](https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/python-compatibility.pdf).
113
-
114
-
1. Log in CRIB with your username and password and select a proper compute unit.
115
-
2. Install `PyStemmusScope` package. This step needs to be done once.
116
-
<details>
117
-
<summary>Install pystemmusscope with python 3.8</summary>
# Create a conda environment called 'pystemmusscope' with all required dependencies
134
-
mamba env create -f environment_3.8.yml
135
-
```
136
-
</details>
137
-
138
-
3. click on the `Remote Desktop` in the
139
-
Launcher. Click on the `Applications`. You will find the 'MATLAB' software under
140
-
the `Research`.
141
-
4. After clicking on 'MATLAB', it asks for your account information that is
142
-
connected to a MATLAB license.
143
-
5. Open the file `STEMMUS_SCOPE_run.m` and set the path of `config_file` to `../config_file_crib.txt` and change `WorkDir` and other configurations in `model.setup()`.
144
-
6. Then, run the main script `STEMMUS_SCOPE_run.m`.
63
+
To contribute to the STEMMUS_SCOPE model, you need access to the model source code that is stored in the repository [STEMMUS_SCOPE](https://github.com/EcoExtreML/STEMMUS_SCOPE).
0 commit comments