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
Copy file name to clipboardExpand all lines: doc/user_guides/ensembles.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ Ensemble simulations are useful when you need to:
15
15
16
16
The ensemble functionality automatically generates configuration files for each simulation instance, distributes the workload across available compute nodes, and manages the execution of all ensemble members.
17
17
18
+
If interaction with the `IPS Portal <portal_guides.html>`_ is enabled, the ensemble system will also handle interaction with the IPS Portal automatically.
Copy file name to clipboardExpand all lines: doc/user_guides/jupyter.rst
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,17 @@ The IPS Portal will generate a cell prior to your own notebook which initializes
120
120
- ``ips_analysis_api.get_child_data_not_ensembles()`` - get the child runid mapping as described above, but only use child runids NOT associated with ensembles.
121
121
- ``ips_analysis_api.get_child_data_by_ensemble_names()`` - gets the child runid mapping as described above, but will only retrieve child runids associated with ensembles. You can further filter this by ensemble name by providing an optional list of component names and an optional list of ensemble names; for example, ``ips_analysis_api.get_child_data_by_ensemble_names(ensemble_names=['ensemble_name_1', 'ensemble_name_2'])`` will ONLY fetch the child runids associated with 'ensemble_name_1' and 'ensemble_name_2', but will search all components for this.
122
122
123
+
An example of the "generic IPS mapping" generated by these functions can look like this:
124
+
125
+
.. code-block:: python
126
+
127
+
{
128
+
0.0: ['/path/to/data/file1.json'],
129
+
1.0: ['/path/to/data/file2.json'],
130
+
2.0: ['/path/to/data/file3.json', '/path/to/data/file4.json'], # note that there can be multiple files per timestamp
# The API key is required for certain interactions with the portal, and will eventually become mandatory. This key should generally be set as an environment variable, and not saved to version control.
29
+
PORTAL_API_KEY = "YOUR_PORTAL_API_KEY" # change this
30
+
# To disable the portal even if PORTAL_URL is set, uncomment the next line.
31
+
# USE_PORTAL = false
26
32
33
+
NOTE: On shared clusters, i.e. Perlmutter, there will generally be specific files that you can source in Slurm scripts which will automatically configure the Portal credentials for you, so you can skip settings these variables yourself. Please see the appropriate project documentation for information on how to configure this.
27
34
28
-
The source code for the portal can be found one `GitHub
35
+
The source code for the portal can be found on `GitHub
29
36
<https://github.com/HPC-SimTools/IPS-portal>`_ and issues can be
This function can be used to send custom events to the Portal if the Portal is enabled; if the Portal is not enabled, the event will still be logged locally.
125
+
126
+
The events API does not currently require an API key to utilize, but this is expected to change in the future.
0 commit comments