@@ -56,9 +56,11 @@ The Python packages that the system depends on are installed in conda environmen
56
56
57
57
.. note ::
58
58
In Mar-2022 the Python environment and package management tool used for the system
59
- was changed from Miniconda3 to `Mambaforge-pypy3 `_.
59
+ was changed from Miniconda3 to Mambaforge-pypy3.
60
+ In Oct-2024 it was changed again to `Miniforge-pypy3 `_ to reflect the merge of
61
+ Mambaforge into Miniforge and the deprecation of mambaforge in Jul-2024.
60
62
61
- .. _ Mambaforge -pypy3 : https://github.com/conda-forge/miniforge
63
+ .. _ Miniforge -pypy3 : https://github.com/conda-forge/miniforge
62
64
63
65
For the ``SalishSeaCast `` automation system:
64
66
@@ -68,18 +70,18 @@ For the ``SalishSeaCast`` automation system:
68
70
$ mamba env create \
69
71
--prefix /SalishSeaCast/nowcast-env \
70
72
-f SalishSeaNowcast/envs/environment-prod.yaml
71
- $ conda activate /SalishSeaCast/nowcast-env
72
- (/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable NEMO_Nowcast/
73
- (/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable moad_tools/
74
- (/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable Reshapr/
75
- (/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable tools/SalishSeaTools/
73
+ $ mamba activate /SalishSeaCast/nowcast-env
74
+ (/SalishSeaCast/nowcast-env)$ python -m pip install --editable NEMO_Nowcast/
75
+ (/SalishSeaCast/nowcast-env)$ python -m pip install --editable moad_tools/
76
+ (/SalishSeaCast/nowcast-env)$ python -m pip install --editable Reshapr/
77
+ (/SalishSeaCast/nowcast-env)$ python -m pip install --editable tools/SalishSeaTools/
76
78
(/SalishSeaCast/nowcast-env)$ cd OPPTools/
77
79
(/SalishSeaCast/nowcast-env)$ git switch SalishSeaCast-prod
78
80
(/SalishSeaCast/nowcast-env)$ cd /SalishSeaCast/
79
- (/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable OPPTools/
80
- (/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable NEMO-Cmd/
81
- (/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable SalishSeaCmd/
82
- (/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable SalishSeaNowcast/
81
+ (/SalishSeaCast/nowcast-env)$ python -m pip install --editable OPPTools/
82
+ (/SalishSeaCast/nowcast-env)$ python -m pip install --editable NEMO-Cmd/
83
+ (/SalishSeaCast/nowcast-env)$ python -m pip install --editable SalishSeaCmd/
84
+ (/SalishSeaCast/nowcast-env)$ python -m pip install --editable SalishSeaNowcast/
83
85
84
86
For the `sarracenia client `_ that maintains mirrors of the HRDPS forecast files and
85
87
rivers hydrometric files from the `ECCC MSC datamart service `_:
@@ -93,7 +95,7 @@ rivers hydrometric files from the `ECCC MSC datamart service`_:
93
95
$ mamba env create \
94
96
--prefix /SalishSeaCast/sarracenia-env \
95
97
-f SalishSeaNowcast/envs/environment-sarracenia.yaml
96
- $ conda activate /SalishSeaCast/sarracenia-env
98
+ $ mamba activate /SalishSeaCast/sarracenia-env
97
99
(/SalishSeaCast/sarracenia-env)$ sr_subscribe edit credentials.conf # initialize datamart credentials
98
100
99
101
For the `salishsea-site web app `_ that is mounted at https://salishsea.eos.ubc.ca/:
@@ -106,7 +108,7 @@ For the `salishsea-site web app`_ that is mounted at https://salishsea.eos.ubc.c
106
108
$ mamba env create \
107
109
--prefix /SalishSeaCast/salishsea-site-env \
108
110
-f salishsea-site/envs/environment-prod.yaml
109
- $ conda activate /SalishSeaCast/salishsea-site-env
111
+ $ mamba activate /SalishSeaCast/salishsea-site-env
110
112
(/SalishSeaCast/salishsea-site-env) $ python3 -m pip install --editable salishsea-site/
111
113
112
114
@@ -163,7 +165,7 @@ and :command:`unset` them when it is deactivated.
163
165
164
166
The :file:` /SalishSeaCast/sarracenia-env` environment variables are included in the
165
167
:file:` SalishSeaNowcast/envs/environment-sarracenia.yaml` file so that they are managed by
166
- :command:` conda ` to automatically :command:` export` the environment variables required by the
168
+ :command:` mamba ` to automatically :command:` export` the environment variables required by the
167
169
sarracenia client when the environment is activated and :command:` unset` them when the
168
170
environment is deactivated.
169
171
To see the variables and their values:
@@ -172,7 +174,7 @@ To see the variables and their values:
172
174
173
175
$ cd /SalishSeaCast/sarracenia-env
174
176
$ source activate /SalishSeaCast/salishsea-site-env
175
- (/SalishSeaCast/salishsea-site-env) $ conda env config vars list
177
+ (/SalishSeaCast/salishsea-site-env) $ mamba env config vars list
176
178
177
179
178
180
:file:` /SalishSeaCast/salishsea-site-env`
@@ -353,7 +355,7 @@ and its dashboard port on 4387:
353
355
354
356
.. code-block:: bash
355
357
356
- $ conda activate /SalishSeaCast/nowcast-env
358
+ $ mamba activate /SalishSeaCast/nowcast-env
357
359
(/SalishSeaCast/nowcast-env)$ dask scheduler --port 4386 --dashboard-address :4387
358
360
359
361
Use :kbd:` Control-b ,` to rename the :program:` tmux` terminal to ` ` dask-scheduler` ` .
@@ -370,7 +372,7 @@ and launch the 4 :command:`dask worker` processes with these properties:
370
372
371
373
.. code-block:: bash
372
374
373
- $ conda activate /SalishSeaCast/nowcast-env
375
+ $ mamba activate /SalishSeaCast/nowcast-env
374
376
(/SalishSeaCast/nowcast-env)$ dask worker --nworkers=4 --nthreads=1 --memory-limit 64G \
375
377
--local-directory /tmp/SalishSeaCast \
376
378
--lifetime 3600 --lifetime-stagger 60 --lifetime-restart \
0 commit comments