Skip to content

Commit bedf356

Browse files
committed
Fixing typos
1 parent 81d2cf2 commit bedf356

3 files changed

Lines changed: 16 additions & 15 deletions

File tree

‎Week_1_data_structures/HW_1_numpy_and_plotting.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"def rms(in_data):\n",
241241
" \"\"\" Calculate the root mean square of each row in in_data.\n",
242242
" @param in_data - A 2-dimensional numpy array\n",
243-
" @return A nx1 numpy array containing the RMS of each row in in_data.\n",
243+
" @return An n rows by 1 column numpy array containing the RMS of each row in in_data.\n",
244244
" \"\"\"\n",
245245
" # GUIDE: Fill in this function.\n",
246246
" # Hint: Use numpy functions to operate on the entire array at once rather than\n",

‎Week_4_fitting/HW_2_system_analysis.ipynb‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
" \n",
174174
"# GUIDE: Write find_peak_or_valley function\n",
175175
"# This function takes in data and whether or not to search for the peak or the valley.\n",
176-
"# It returns an index or None if no peak/valley\n",
176+
"# It returns an index or an empty list [] if no peak/valley\n",
177177
"\n",
178178
"# If b_peak_or_valley is True, return the peak\n",
179179
"def find_peak_or_valley(data, b_peak_or_valley):\n",
@@ -195,7 +195,8 @@
195195
"data_b = np.array([-2.5, 1.0, 4.0, 8.0, 4.0, 1.0, -2.5])\n",
196196
"data_c = np.array([1.1, 2.2, 3.3, 4.4])\n",
197197
"\n",
198-
"# GUIDE Add tests - what should the correct values be? If you are unsure, try plotting the data"
198+
"# GUIDE Add tests - what should the correct values be? If you are unsure, try plotting the data\n",
199+
"#. Make sure to test if the data HAS not peak or valley"
199200
]
200201
},
201202
{
@@ -918,7 +919,7 @@
918919
"name": "python",
919920
"nbconvert_exporter": "python",
920921
"pygments_lexer": "ipython3",
921-
"version": "3.11.7"
922+
"version": "3.12.4"
922923
},
923924
"otter": {
924925
"OK_FORMAT": true,

‎Week_7_simulation/lec_act_7_simulation.ipynb‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@
6969
"outputs": [],
7070
"source": [
7171
"def simulate_one_step(x, y, vx, vy, ax, ay, delta_t):\n",
72-
" \"\"\" GUIDE simulate one step forward using Euler integration \n",
73-
" (x1 = x0 + delta_t * v0),\n",
74-
" (v1 = v0 + delta_t * a0)\n",
75-
" @param x, y - position\n",
76-
" @param vx, vy - velocity\n",
77-
" @param ax, ay - acceleration\n",
78-
" @return x_next, y_next, vx_next, vy_next\"\"\"\n",
79-
" ..."
72+
" \"\"\" GUIDE simulate one step forward using Euler integration \n",
73+
" (x1 = x0 + delta_t * v0),\n",
74+
" (v1 = v0 + delta_t * a0)\n",
75+
" @param x, y - position\n",
76+
" @param vx, vy - velocity\n",
77+
" @param ax, ay - acceleration\n",
78+
" @return x_next, y_next, vx_next, vy_next\"\"\"\n",
79+
" ..."
8080
]
8181
},
8282
{
@@ -97,7 +97,7 @@
9797
"vx = 0.1\n",
9898
"vy = 0.3\n",
9999
"ax = 0.001\n",
100-
"ay = 1.0\n",
100+
"ay = -1.0\n",
101101
"xnew, ynew, vxnew, vynew = simulate_one_step(x, y, vx, vy, ax, ay, delta_t)\n",
102102
"\n",
103103
"# Testing one of these here\n",
@@ -295,7 +295,7 @@
295295
],
296296
"metadata": {
297297
"kernelspec": {
298-
"display_name": "3.14.2",
298+
"display_name": "base",
299299
"language": "python",
300300
"name": "python3"
301301
},
@@ -309,7 +309,7 @@
309309
"name": "python",
310310
"nbconvert_exporter": "python",
311311
"pygments_lexer": "ipython3",
312-
"version": "3.14.2"
312+
"version": "3.12.4"
313313
},
314314
"otter": {
315315
"OK_FORMAT": true,

0 commit comments

Comments
 (0)