Skip to content

Commit 8da45e8

Browse files
committed
Add back gpcam colab import line
1 parent f2ce50d commit 8da45e8

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

examples/tutorials/gpcam_surrogate_model/gpcam.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"Ensure that libEnsemble, and gpCAM are installed via: `pip install libensemble gpcam`\n",
2121
" \n",
2222
"> **Note that for notebooks** the multiprocessing start method should be set to `fork` (default on Linux).\n",
23-
"> To use with `spawn` (default on Windows and macOS), use the `multiprocess` library."
23+
"> To use with `spawn` (default on Windows and macOS), use the `multiprocess` library.\n",
24+
"\n",
25+
"> **Note:** If using **Colab** the cell below installs gpCAM and prevents Colab downgrading numpy due to pre-installs.\n",
26+
"> Restart session when prompted (the warnings can be ignored)."
2427
]
2528
},
2629
{
@@ -32,7 +35,9 @@
3235
"import sys\n",
3336
"if 'google.colab' in sys.modules:\n",
3437
" !pip install libensemble\n",
35-
" !pip install gpcam"
38+
" # !pip install gpcam\n",
39+
" # Prevent downgraded numpy in colab due to preinstalls\n",
40+
" !pip install --upgrade --force-reinstall numpy==2.1.1 scipy gpcam fvgp\""
3641
]
3742
},
3843
{

libensemble/gen_funcs/persistent_sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _get_user_params(user_specs):
3030

3131

3232
@persistent_input_fields(["sim_id"])
33-
@output_data([("x", float, (2,))]) # The dimesion 2 is only a default... and is overwritten
33+
@output_data([("x", float, (2,))]) # The dimesion of 2 is a default and can be overwritten
3434
def persistent_uniform(_, persis_info, gen_specs, libE_info):
3535
"""
3636
This generation function always enters into persistent mode and returns

0 commit comments

Comments
 (0)