Skip to content

Commit 4d94246

Browse files
fix: names of folders and toc must match (#88)
* fix: names of folders and toc must match Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: one more place Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7a09d6c commit 4d94246

File tree

25 files changed

+67
-64
lines changed

25 files changed

+67
-64
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ repos:
4747
name: Disallow improper capitalization
4848
language: pygrep
4949
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
50-
exclude: ^(.pre-commit-config.yaml|content/week05/precommit.md)$
50+
exclude: ^(.pre-commit-config.yaml|content/week05_package/precommit.md)$
5151

5252
- repo: https://github.com/PrincetonUniversity/blocklint
5353
rev: v0.2.5

_toc.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,83 +6,83 @@ root: content/intro
66
parts:
77
- caption: "Week 1: Intro"
88
chapters:
9-
- file: content/week01/intro.md
10-
- file: content/week01/setup.md
11-
- file: content/week01/vcs.md
12-
- file: content/week01/programming_basics.ipynb
13-
- file: content/week01/practices.md
14-
- file: content/week01/cleanup_bessel.ipynb
9+
- file: content/week01_intro/intro.md
10+
- file: content/week01_intro/setup.md
11+
- file: content/week01_intro/vcs.md
12+
- file: content/week01_intro/programming_basics.ipynb
13+
- file: content/week01_intro/practices.md
14+
- file: content/week01_intro/cleanup_bessel.ipynb
1515

1616
- caption: "Week 2: Version Control"
1717
chapters:
18-
- file: content/week02/intro.md
19-
- file: content/week02/first_steps.md
20-
- file: content/week02/advanced_steps.md
18+
- file: content/week02_git/intro.md
19+
- file: content/week02_git/first_steps.md
20+
- file: content/week02_git/advanced_steps.md
2121

2222
- caption: "Week 3: Testing"
2323
chapters:
24-
- file: content/week03/python_setup.md
25-
- file: content/week03/testing.md
26-
- file: content/week03/pytest.md
27-
- file: content/week03/tdd.md
28-
- file: content/week03/debugging.md
24+
- file: content/week03_testing/python_setup.md
25+
- file: content/week03_testing/testing.md
26+
- file: content/week03_testing/pytest.md
27+
- file: content/week03_testing/tdd.md
28+
- file: content/week03_testing/debugging.md
2929

3030
- caption: "Week 4: Continuous Integration"
3131
chapters:
32-
- file: content/week04/ci.md
33-
- file: content/week04/cd.md
34-
- file: content/week04/docs.md
32+
- file: content/week04_ci/ci.md
33+
- file: content/week04_ci/cd.md
34+
- file: content/week04_ci/docs.md
3535

3636
- caption: "Week 5: Packaging and Quality Control"
3737
chapters:
38-
- file: content/week05/packaging.md
39-
- file: content/week05/using_packages.md
40-
- file: content/week05/making_a_package.md
41-
- file: content/week05/precommit.md
42-
- file: content/week05/task_runners.md
38+
- file: content/week05_package/packaging.md
39+
- file: content/week05_package/using_packages.md
40+
- file: content/week05_package/making_a_package.md
41+
- file: content/week05_package/precommit.md
42+
- file: content/week05_package/task_runners.md
4343

4444
- caption: "Week 6: Object Oriented design"
4545
chapters:
46-
- file: content/week06/introoo.md
47-
- file: content/week06/oodesign.md
46+
- file: content/week06_oop/introoo.md
47+
- file: content/week06_oop/oodesign.md
4848

4949
- caption: "Week 7: Design Patterns"
5050
chapters:
51-
- file: content/week07/designpatt.md
52-
- file: content/week07/functional.md
51+
- file: content/week07_design/designpatt.md
52+
- file: content/week07_design/functional.md
5353

5454
- caption: "Week 8: Static Typing"
5555
chapters:
56-
- file: content/week08/typing.md
56+
- file: content/week08_static_typing/typing.md
5757

5858
- caption: "Week 9: Mixing Languages"
5959
chapters:
60-
- file: content/week09/01-shared-objects/01-shared-objects.ipynb
61-
- file: content/week09/02-cpython/02-cpython.ipynb
62-
- file: content/week09/03-pybind/03a-pybind.ipynb
63-
- file: content/week09/03-pybind/03b-pybind.ipynb
64-
- file: content/week09/06-rust.md
60+
- file: content/week09_binding/01-shared-objects/01-shared-objects.ipynb
61+
- file: content/week09_binding/02-cpython/02-cpython.ipynb
62+
- file: content/week09_binding/03-pybind/03a-pybind.ipynb
63+
- file: content/week09_binding/03-pybind/03b-pybind.ipynb
64+
- file: content/week09_binding/06-rust.md
6565

6666
- caption: "Week 10: Intro to Compilation"
6767
chapters:
68-
- file: content/week10/Compiled_Languages.ipynb
69-
- file: content/week10/rust_example/compiled.md
70-
- file: content/week10/rust_example/rust.md
71-
- file: content/week10/debugging.md
72-
- file: content/week10/profiling.md
68+
- file: content/week10_compiled/Compiled_Languages.ipynb
69+
- file: content/week10_compiled/rust_example/compiled.md
70+
- file: content/week10_compiled/rust_example/rust.md
71+
- file: content/week10_compiled/debugging.md
72+
- file: content/week10_compiled/profiling.md
7373

7474
- caption: "Week 11: Parallel Computing"
7575
chapters:
76-
- file: content/week11/intro.md
77-
- file: content/week11/openmp.md
78-
- file: content/week11/threading.md
79-
- file: content/week11/concepts.md
76+
- file: content/week11_omp/intro.md
77+
- file: content/week11_omp/openmp.md
78+
- file: content/week11_omp/threading.md
79+
- file: content/week11_omp/concepts.md
8080

8181
- caption: "Week 12: Distributed Computing"
8282
chapters:
83-
- file: content/week12/mpi.md
83+
- file: content/week12_mpi/mpi.md
8484

8585
- caption: "Bonus: Exotic topics"
8686
chapters:
87-
- file: content/week13/webassembly.md
88-
- file: content/week13/shell.md
87+
- file: content/week13_misc/webassembly.md
88+
- file: content/week13_misc/shell.md

content/week01_intro/cleanup_bessel.ipynb

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,36 @@
2020
"from numpy import *\n",
2121
"import matplotlib.pyplot as plt\n",
2222
"\n",
23-
"Xmax = 40.\n",
23+
"Xmax = 40.0\n",
2424
"Xmin = 0.25\n",
25-
"step = 0.1 # Global class variables\n",
26-
"order = 10; start = 50 # Plot j_order\n",
27-
"graph1, ax1 = plt.subplots(figsize = (5, 5))\n",
28-
"ax1.set_title('Sperical Bessel, \\\n",
29-
" L = 1 (red), 10')\n",
30-
"ax1.set_xlabel(\"x\"); ax1.set_ylabel('j(x)')\n",
31-
"ax1.set_xlim(left=Xmin , \\\n",
32-
" right=Xmax)\n",
33-
"ax1.set_ylim(bottom=-0.2 , top=0.5)\n",
34-
"\n",
35-
"\n",
36-
"def down(x, n, m): # Method down, recurs downward\n",
37-
" j = zeros( (start + 2), float)\n",
38-
" j[m + 1] = j[m] = 1. # Start with anything\n",
39-
" for k in range(m, 0, -1):\n",
40-
" j[k - 1] = ( (2.*k + 1.)/x)*j[k] - j[k + 1]\n",
41-
" scale = (sin(x)/x)/j[0] # Scale solution to known j[0]\n",
25+
"step = 0.1 # Global class variables\n",
26+
"order = 10\n",
27+
"start = 50 # Plot j_order\n",
28+
"graph1, ax1 = plt.subplots(figsize=(5, 5))\n",
29+
"ax1.set_title(\n",
30+
" \"Spherical Bessel, \\\n",
31+
" L = 1 (red), 10\"\n",
32+
")\n",
33+
"ax1.set_xlabel(\"x\")\n",
34+
"ax1.set_ylabel(\"j(x)\")\n",
35+
"ax1.set_xlim(left=Xmin, right=Xmax)\n",
36+
"ax1.set_ylim(bottom=-0.2, top=0.5)\n",
37+
"\n",
38+
"\n",
39+
"def down(x, n, m): # Method down, recurs downward\n",
40+
" j = zeros((start + 2), float)\n",
41+
" j[m + 1] = j[m] = 1.0 # Start with anything\n",
42+
" for k in range(m, 0, -1):\n",
43+
" j[k - 1] = ((2.0 * k + 1.0) / x) * j[k] - j[k + 1]\n",
44+
" scale = (sin(x) / x) / j[0] # Scale solution to known j[0]\n",
4245
" return j[n] * scale\n",
4346
"\n",
4447
"\n",
4548
"for x in arange(Xmin, Xmax, step):\n",
4649
" ax1.plot(x, down(x, order, start), \"r.\")\n",
4750
"\n",
4851
"for x in arange(Xmin, Xmax, step):\n",
49-
" ax1.plot(x, down(x,1,start), \"g.\")\n",
52+
" ax1.plot(x, down(x, 1, start), \"g.\")\n",
5053
"\n",
5154
"plt.show()"
5255
]
File renamed without changes.

0 commit comments

Comments
 (0)