Skip to content

Commit

Permalink
Merge branch 'Berlin-Workshop' of https://github.com/TomF98/torchphysics
Browse files Browse the repository at this point in the history
 into Berlin-Workshop
  • Loading branch information
nheilenkoetter committed Nov 12, 2024
2 parents 8dbc46f + b267c47 commit bbe01d7
Show file tree
Hide file tree
Showing 29 changed files with 3,017 additions and 2,919 deletions.
2 changes: 1 addition & 1 deletion examples/Day1/Exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Exercise_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Exercise_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Exercise_5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Sol_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Sol_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Sol_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Sol_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/Day1/Sol_5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"# This block is for GPU selection. Please execute.\n",
"import pathlib\n",
"import os\n",
"user = int(str(pathlib.Path().resolve())[-2:])\n",
"user = int(str(pathlib.Path().resolve())[22:24])\n",
"if user <= 21: \n",
" gpu_device = str(user % 7) # moriarty\n",
"else: gpu_device = str(user % 4) # neptuno\n",
Expand Down
Loading

0 comments on commit bbe01d7

Please sign in to comment.