|
35 | 35 | } |
36 | 36 | ], |
37 | 37 | "source": [ |
| 38 | +<<<<<<< Updated upstream |
38 | 39 | "# Dapi installation\n", |
39 | 40 | "# !pip uninstall dapi --yes\n", |
40 | 41 | "!pip install --user --ignore-installed dapi==0.4.2\n", |
|
45 | 46 | "\n", |
46 | 47 | "# Install editable local version of dapi\n", |
47 | 48 | "# !pip install -e ../../" |
| 49 | +======= |
| 50 | + "!pip install --user --upgrade --force-reinstall --ignore-installed --no-cache-dir dapi --quiet" |
| 51 | +>>>>>>> Stashed changes |
48 | 52 | ] |
49 | 53 | }, |
50 | 54 | { |
51 | 55 | "cell_type": "code", |
| 56 | +<<<<<<< Updated upstream |
52 | 57 | "execution_count": 1, |
53 | 58 | "id": "ad634b9b", |
54 | 59 | "metadata": {}, |
|
66 | 71 | "output_type": "stream", |
67 | 72 | "text": [ |
68 | 73 | "unknown\n" |
| 74 | +======= |
| 75 | + "execution_count": null, |
| 76 | + "id": "c318e131", |
| 77 | + "metadata": {}, |
| 78 | + "outputs": [ |
| 79 | + { |
| 80 | + "name": "stdout", |
| 81 | + "output_type": "stream", |
| 82 | + "text": [ |
| 83 | + "Old NumPy 1.24 installed!\n" |
| 84 | + ] |
| 85 | + }, |
| 86 | + { |
| 87 | + "name": "stderr", |
| 88 | + "output_type": "stream", |
| 89 | + "text": [ |
| 90 | + "\n", |
| 91 | + "\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", |
| 92 | + "\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" |
| 93 | +>>>>>>> Stashed changes |
69 | 94 | ] |
70 | 95 | } |
71 | 96 | ], |
72 | 97 | "source": [ |
| 98 | +<<<<<<< Updated upstream |
73 | 99 | "import dapi\n", |
74 | 100 | "print(dapi.__version__)" |
| 101 | +======= |
| 102 | + "import sys, os\n", |
| 103 | + "\n", |
| 104 | + "print(\n", |
| 105 | + " \"Old NumPy 1.24 installed!\"\n", |
| 106 | + " if sys.version_info < (3, 10)\n", |
| 107 | + " and os.system(\"pip install --user --force-reinstall numpy~=1.24.0 --quiet\") == 0\n", |
| 108 | + " else \"Skipped (Python 3.10+)\"\n", |
| 109 | + " if sys.version_info >= (3, 10)\n", |
| 110 | + " else \"Install failed!\"\n", |
| 111 | + ")" |
| 112 | + ] |
| 113 | + }, |
| 114 | + { |
| 115 | + "cell_type": "markdown", |
| 116 | + "id": "1d36c1fb", |
| 117 | + "metadata": {}, |
| 118 | + "source": [ |
| 119 | + "### ⚠️ Please restart the kernel by choosing Kernel >> Restart kernel ⚠️" |
| 120 | + ] |
| 121 | + }, |
| 122 | + { |
| 123 | + "cell_type": "code", |
| 124 | + "execution_count": 5, |
| 125 | + "id": "8186b2c9", |
| 126 | + "metadata": {}, |
| 127 | + "outputs": [ |
| 128 | + { |
| 129 | + "name": "stdout", |
| 130 | + "output_type": "stream", |
| 131 | + "text": [ |
| 132 | + "NumPy version: 2.0.2\n", |
| 133 | + "DAPI version: unknown\n" |
| 134 | + ] |
| 135 | + } |
| 136 | + ], |
| 137 | + "source": [ |
| 138 | + "import numpy as np\n", |
| 139 | + "print(\"NumPy version:\", np.__version__)\n", |
| 140 | + "import dapi\n", |
| 141 | + "print(\"DAPI version:\", dapi.__version__)" |
| 142 | +>>>>>>> Stashed changes |
75 | 143 | ] |
76 | 144 | }, |
77 | 145 | { |
|
142 | 210 | ] |
143 | 211 | }, |
144 | 212 | { |
| 213 | +<<<<<<< Updated upstream |
| 214 | +======= |
| 215 | + "cell_type": "markdown", |
| 216 | + "id": "da76f536", |
| 217 | + "metadata": {}, |
| 218 | + "source": [ |
| 219 | + "### Configure MPM job" |
| 220 | + ] |
| 221 | + }, |
| 222 | + { |
| 223 | +>>>>>>> Stashed changes |
145 | 224 | "cell_type": "code", |
146 | | - "execution_count": 4, |
| 225 | + "execution_count": null, |
147 | 226 | "id": "feee3ce0", |
148 | 227 | "metadata": {}, |
149 | 228 | "outputs": [], |
150 | 229 | "source": [ |
151 | | - "ds_path: str = \"/MyData/mpm-benchmarks/2d/uniaxial_stress/\"\n", |
152 | | - "input_filename: str = \"mpm.json\"\n", |
153 | | - "max_job_minutes: int = 10\n", |
154 | | - "# queue: str = \"skx\" # Example override - only if needed and valid\n", |
155 | | - "# tacc_allocation: str = \"BCS20003\"\n", |
156 | | - "tacc_allocation: str = \"ASC25049\"\n", |
157 | | - "app_id_to_use = \"mpm-s3\"" |
| 230 | + "# Job configuration parameters\n", |
| 231 | + "ds_path: str = \"/CommunityData/dapi/mpm/uniaxial_stress/\" # Path to input files\n", |
| 232 | + "input_filename: str = \"mpm.json\" # Main input script filename\n", |
| 233 | + "max_job_minutes: int = 10 # Maximum runtime in minutes\n", |
| 234 | + "tacc_allocation: str = \"ASC25049\" # TACC allocation to charge\n", |
| 235 | + "app_id_to_use = \"mpm-s3\" # MPM application ID\n", |
| 236 | + "# queue: str = \"skx\" # Example override - only if needed and valid" |
158 | 237 | ] |
159 | 238 | }, |
160 | 239 | { |
|
183 | 262 | }, |
184 | 263 | { |
185 | 264 | "cell_type": "code", |
186 | | - "execution_count": 6, |
| 265 | + "execution_count": null, |
187 | 266 | "id": "6257d31a", |
188 | 267 | "metadata": {}, |
189 | 268 | "outputs": [ |
|
251 | 330 | " script_filename=input_filename,\n", |
252 | 331 | " max_minutes=max_job_minutes,\n", |
253 | 332 | " allocation=tacc_allocation,\n", |
| 333 | + " # queue=queue, # Uncomment if you want to specify a queue\n", |
254 | 334 | " )\n", |
255 | 335 | " print(\"\\n--- Generated Job Request Dictionary ---\")\n", |
256 | 336 | " print(json.dumps(job_dict, indent=2, default=str))\n", |
|
0 commit comments