Skip to content

Commit 96165d8

Browse files
committed
Fixes #3 TMS support automatically on init client
1 parent c4440f6 commit 96165d8

12 files changed

Lines changed: 490 additions & 695 deletions

docs/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Submit and monitor MPM simulations for large deformation problems.
4747
### PyLauncher Parameter Sweeps
4848
Run many independent tasks within a single SLURM allocation using PyLauncher.
4949

50-
[![Try on DesignSafe](https://raw.githubusercontent.com/DesignSafe-CI/dapi/main/DesignSafe-Badge.svg)](https://jupyter.designsafe-ci.org/hub/user-redirect/lab/tree/CommunityData/dapi/pylauncher_sweep.ipynb)
50+
[![Try on DesignSafe](https://raw.githubusercontent.com/DesignSafe-CI/dapi/main/DesignSafe-Badge.svg)](https://jupyter.designsafe-ci.org/hub/user-redirect/lab/tree/CommunityData/dapi/pylauncher/pylauncher_sweep.ipynb)
5151

5252
**What you'll learn:**
5353
- Generating parameter sweep commands from templates

docs/examples/pylauncher.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Run many independent tasks within a single SLURM allocation using [PyLauncher](https://github.com/TACC/pylauncher) and dapi's parameter sweep utilities.
44

5-
[![Try on DesignSafe](https://raw.githubusercontent.com/DesignSafe-CI/dapi/main/DesignSafe-Badge.svg)](https://jupyter.designsafe-ci.org/hub/user-redirect/lab/tree/CommunityData/dapi/pylauncher_sweep.ipynb)
5+
[![Try on DesignSafe](https://raw.githubusercontent.com/DesignSafe-CI/dapi/main/DesignSafe-Badge.svg)](https://jupyter.designsafe-ci.org/hub/user-redirect/lab/tree/CommunityData/dapi/pylauncher/pylauncher_sweep.ipynb)
66

77
## When to Use PyLauncher
88

examples/apps.ipynb

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,7 @@
2222
"id": "839fa332-70a6-4818-a190-18c9ca109c28",
2323
"metadata": {},
2424
"outputs": [],
25-
"source": [
26-
"%pip install --user --no-cache-dir --force-reinstall --no-warn-script-location --no-deps --quiet dapi\n",
27-
"%pip install --user --quiet setuptools\n",
28-
"%pip install --user --no-warn-script-location --quiet dapi"
29-
]
30-
},
31-
{
32-
"cell_type": "code",
33-
"execution_count": null,
34-
"id": "7bc3ba6c",
35-
"metadata": {},
36-
"outputs": [],
37-
"source": [
38-
"import sys\n",
39-
"import os\n",
40-
"\n",
41-
"print(\n",
42-
" \"Old NumPy 1.24 installed!\"\n",
43-
" if sys.version_info < (3, 10)\n",
44-
" and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n",
45-
" else \"Skipped (Python 3.10+)\"\n",
46-
" if sys.version_info >= (3, 10)\n",
47-
" else \"Install failed!\"\n",
48-
")"
49-
]
50-
},
51-
{
52-
"cell_type": "markdown",
53-
"id": "bf12cbe6",
54-
"metadata": {},
55-
"source": [
56-
"### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️"
57-
]
25+
"source": "%pip install dapi --quiet"
5826
},
5927
{
6028
"cell_type": "code",
@@ -327,4 +295,4 @@
327295
},
328296
"nbformat": 4,
329297
"nbformat_minor": 5
330-
}
298+
}

examples/db.ipynb

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,7 @@
1414
"id": "5a76c77b-0078-48fc-ade6-e46cbac010dd",
1515
"metadata": {},
1616
"outputs": [],
17-
"source": [
18-
"%pip install --user --no-cache-dir --force-reinstall --no-warn-script-location --no-deps --quiet dapi\n",
19-
"%pip install --user --quiet setuptools\n",
20-
"%pip install --user --no-warn-script-location --quiet dapi"
21-
]
22-
},
23-
{
24-
"cell_type": "code",
25-
"execution_count": null,
26-
"id": "da1802ad",
27-
"metadata": {},
28-
"outputs": [],
29-
"source": [
30-
"import sys\n",
31-
"import os\n",
32-
"\n",
33-
"print(\n",
34-
" \"Old NumPy 1.24 installed!\"\n",
35-
" if sys.version_info < (3, 10)\n",
36-
" and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n",
37-
" else \"Skipped (Python 3.10+)\"\n",
38-
" if sys.version_info >= (3, 10)\n",
39-
" else \"Install failed!\"\n",
40-
")"
41-
]
42-
},
43-
{
44-
"cell_type": "markdown",
45-
"id": "c3ade4b2",
46-
"metadata": {},
47-
"source": [
48-
"### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️"
49-
]
17+
"source": "%pip install dapi --quiet"
5018
},
5119
{
5220
"cell_type": "code",
@@ -208,4 +176,4 @@
208176
},
209177
"nbformat": 4,
210178
"nbformat_minor": 5
211-
}
179+
}

examples/mpm/mpm-minimal.ipynb

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -21,52 +21,8 @@
2121
"execution_count": null,
2222
"id": "8ed2d128",
2323
"metadata": {},
24-
"outputs": [
25-
{
26-
"name": "stdout",
27-
"output_type": "stream",
28-
"text": [
29-
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
30-
"poetry 2.1.3 requires importlib-metadata<8.7,>=4.4; python_version < \"3.10\", but you have importlib-metadata 8.7.0 which is incompatible.\u001b[0m\u001b[31m\n",
31-
"\u001b[0m\n",
32-
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.1.1\u001b[0m\n",
33-
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n"
34-
]
35-
}
36-
],
37-
"source": [
38-
"%pip install --user --no-cache-dir --force-reinstall --no-warn-script-location --no-deps --quiet dapi\n",
39-
"%pip install --user --quiet setuptools\n",
40-
"%pip install --user --no-warn-script-location --quiet dapi"
41-
]
42-
},
43-
{
44-
"cell_type": "code",
45-
"execution_count": null,
46-
"id": "64e3f3a3",
47-
"metadata": {},
4824
"outputs": [],
49-
"source": [
50-
"import sys\n",
51-
"import os\n",
52-
"\n",
53-
"print(\n",
54-
" \"Old NumPy 1.24 installed!\"\n",
55-
" if sys.version_info < (3, 10)\n",
56-
" and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n",
57-
" else \"Skipped (Python 3.10+)\"\n",
58-
" if sys.version_info >= (3, 10)\n",
59-
" else \"Install failed!\"\n",
60-
")"
61-
]
62-
},
63-
{
64-
"cell_type": "markdown",
65-
"id": "b9fe1a7a",
66-
"metadata": {},
67-
"source": [
68-
"### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️"
69-
]
25+
"source": "%pip install dapi --quiet"
7026
},
7127
{
7228
"cell_type": "code",

examples/mpm/mpm.ipynb

Lines changed: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -22,80 +22,7 @@
2222
"id": "dabd7715",
2323
"metadata": {},
2424
"outputs": [],
25-
"source": [
26-
"%pip install --user --no-cache-dir --force-reinstall --no-warn-script-location --no-deps --quiet dapi\n",
27-
"%pip install --user --quiet setuptools\n",
28-
"%pip install --user --no-warn-script-location --quiet dapi"
29-
]
30-
},
31-
{
32-
"cell_type": "code",
33-
"execution_count": null,
34-
"id": "c318e131",
35-
"metadata": {},
36-
"outputs": [
37-
{
38-
"name": "stdout",
39-
"output_type": "stream",
40-
"text": [
41-
"Old NumPy 1.24 installed!\n"
42-
]
43-
},
44-
{
45-
"name": "stderr",
46-
"output_type": "stream",
47-
"text": [
48-
"\n",
49-
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.1.1\u001b[0m\n",
50-
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n"
51-
]
52-
}
53-
],
54-
"source": [
55-
"import sys\n",
56-
"import os\n",
57-
"\n",
58-
"print(\n",
59-
" \"Old NumPy 1.24 installed!\"\n",
60-
" if sys.version_info < (3, 10)\n",
61-
" and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n",
62-
" else \"Skipped (Python 3.10+)\"\n",
63-
" if sys.version_info >= (3, 10)\n",
64-
" else \"Install failed!\"\n",
65-
")"
66-
]
67-
},
68-
{
69-
"cell_type": "markdown",
70-
"id": "1d36c1fb",
71-
"metadata": {},
72-
"source": [
73-
"### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️"
74-
]
75-
},
76-
{
77-
"cell_type": "code",
78-
"execution_count": 5,
79-
"id": "8186b2c9",
80-
"metadata": {},
81-
"outputs": [
82-
{
83-
"name": "stdout",
84-
"output_type": "stream",
85-
"text": [
86-
"NumPy version: 2.0.2\n",
87-
"DAPI version: unknown\n"
88-
]
89-
}
90-
],
91-
"source": [
92-
"import numpy as np\n",
93-
"\n",
94-
"print(\"NumPy version:\", np.__version__)\n",
95-
"import dapi\n",
96-
"\n",
97-
"print(\"DAPI version:\", dapi.__version__)"
98-
]
25+
"source": "%pip install dapi --quiet"
9926
},
10027
{
10128
"cell_type": "code",

examples/openfoam/openfoam-minimal.ipynb

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -19,47 +19,7 @@
1919
"execution_count": null,
2020
"metadata": {},
2121
"outputs": [],
22-
"source": [
23-
"%pip install --user --no-cache-dir --force-reinstall --no-warn-script-location --no-deps --quiet dapi\n",
24-
"%pip install --user --quiet setuptools\n",
25-
"%pip install --user --no-warn-script-location --quiet dapi"
26-
]
27-
},
28-
{
29-
"cell_type": "code",
30-
"execution_count": null,
31-
"metadata": {},
32-
"outputs": [
33-
{
34-
"name": "stdout",
35-
"output_type": "stream",
36-
"text": [
37-
"Found existing installation: dapi 0.3.0\n",
38-
"Uninstalling dapi-0.3.0:\n",
39-
" Successfully uninstalled dapi-0.3.0\n"
40-
]
41-
}
42-
],
43-
"source": [
44-
"import sys\n",
45-
"import os\n",
46-
"\n",
47-
"print(\n",
48-
" \"Old NumPy 1.24 installed!\"\n",
49-
" if sys.version_info < (3, 10)\n",
50-
" and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n",
51-
" else \"Skipped (Python 3.10+)\"\n",
52-
" if sys.version_info >= (3, 10)\n",
53-
" else \"Install failed!\"\n",
54-
")"
55-
]
56-
},
57-
{
58-
"cell_type": "markdown",
59-
"metadata": {},
60-
"source": [
61-
"### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️"
62-
]
22+
"source": "%pip install dapi --quiet"
6323
},
6424
{
6525
"cell_type": "code",

examples/openfoam/openfoam.ipynb

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,7 @@
2020
"execution_count": null,
2121
"metadata": {},
2222
"outputs": [],
23-
"source": [
24-
"%pip install --user --no-cache-dir --force-reinstall --no-warn-script-location --no-deps --quiet dapi\n",
25-
"%pip install --user --quiet setuptools\n",
26-
"%pip install --user --no-warn-script-location --quiet dapi"
27-
]
28-
},
29-
{
30-
"cell_type": "code",
31-
"execution_count": null,
32-
"metadata": {},
33-
"outputs": [],
34-
"source": [
35-
"import sys\n",
36-
"import os\n",
37-
"\n",
38-
"print(\n",
39-
" \"Old NumPy 1.24 installed!\"\n",
40-
" if sys.version_info < (3, 10)\n",
41-
" and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n",
42-
" else \"Skipped (Python 3.10+)\"\n",
43-
" if sys.version_info >= (3, 10)\n",
44-
" else \"Install failed!\"\n",
45-
")"
46-
]
47-
},
48-
{
49-
"cell_type": "markdown",
50-
"metadata": {},
51-
"source": [
52-
"### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️"
53-
]
23+
"source": "%pip install dapi --quiet"
5424
},
5525
{
5626
"cell_type": "markdown",

examples/opensees/OpenSeesMP-dapi.ipynb

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -40,50 +40,7 @@
4040
"id": "60255c5a",
4141
"metadata": {},
4242
"outputs": [],
43-
"source": [
44-
"%pip install --user --no-cache-dir --force-reinstall --no-warn-script-location --no-deps --quiet dapi\n",
45-
"%pip install --user --quiet setuptools\n",
46-
"%pip install --user --no-warn-script-location --quiet dapi"
47-
]
48-
},
49-
{
50-
"cell_type": "code",
51-
"execution_count": null,
52-
"id": "cell-4",
53-
"metadata": {},
54-
"outputs": [
55-
{
56-
"name": "stdout",
57-
"output_type": "stream",
58-
"text": [
59-
"Found existing installation: dapi 0.3.0\n",
60-
"Uninstalling dapi-0.3.0:\n",
61-
" Successfully uninstalled dapi-0.3.0\n",
62-
"Requirement already satisfied: numpy in /opt/conda/lib/python3.12/site-packages (2.2.6)\n"
63-
]
64-
}
65-
],
66-
"source": [
67-
"import sys\n",
68-
"import os\n",
69-
"\n",
70-
"print(\n",
71-
" \"Old NumPy 1.24 installed!\"\n",
72-
" if sys.version_info < (3, 10)\n",
73-
" and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n",
74-
" else \"Skipped (Python 3.10+)\"\n",
75-
" if sys.version_info >= (3, 10)\n",
76-
" else \"Install failed!\"\n",
77-
")"
78-
]
79-
},
80-
{
81-
"cell_type": "markdown",
82-
"id": "a2680e64",
83-
"metadata": {},
84-
"source": [
85-
"### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️"
86-
]
43+
"source": "%pip install dapi --quiet"
8744
},
8845
{
8946
"cell_type": "code",

0 commit comments

Comments
 (0)