Skip to content

Commit a5ca6a8

Browse files
authored
Merge pull request OSUrobotics#2 from sabbekosu/winter26-changes
W26 Typo Fixes
2 parents f623058 + face829 commit a5ca6a8

17 files changed

Lines changed: 42 additions & 48 deletions

‎Week_0_python/a_tutorial_strings_format.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"\n",
132132
"The curly brackets tell the format function to \"fill in\" the variables that are passed in. Python provides a much nicer way of doing this with **f(\"\")** which we'll show below. It's useful to see the more traditional, C++ or Matlab version first.\n",
133133
"TODO edits to try/do\n",
134-
" - add in a 3rd variable to pring\n",
134+
" - add in a 3rd variable to print\n",
135135
" - print with 5 decimal places\n",
136136
" - print out the same variable twice in one line"
137137
]

‎Week_0_python/f_tutorial_dictionary.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"outputs": [],
160160
"source": [
161161
"# Make up some data\n",
162-
"my_names = [\"Amazon\", \"Google\", \"Meta\", \"Tiktoc\"]\n",
162+
"my_names = [\"Amazon\", \"Google\", \"Meta\", \"Tiktok\"]\n",
163163
"my_sales_figs = [1.1, 2.2, 1.3, 0.1] # made up numbers\n",
164164
"my_number_employees = [100, 20, 10, 1]"
165165
]

‎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 1x number of columns in in_data numpy array containing the RMS of each row in the array.\n",
243+
" @return A nx1 numpy array containing the RMS of each row in in_data.\n",
244244
" \"\"\"\n",
245245
" # TODO: Fill in this function.\n",
246246
" # Hint: Use numpy functions to operate on the entire array at once rather than\n",

‎Week_1_data_structures/Lab_1_data_analysis.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@
553553
"\n",
554554
"# TODO Fix this to copy the right hand accelerometer data into right_hand_accelerometer_data\n",
555555
"# On the left-hand side, the columns should start at zero and end at 3 (n_dims_for_right_hand_accelerometer_data)\n",
556-
"# On the right-hand side, the columns should start at index_wrist_torque_offset and end at index_wrist_torque_offset + 3 (n_dims_for_right_hand_accelerometer_data)\n",
556+
"# On the right-hand side, the columns should start at index_right_hand_accelerometer_offset and end at index_right_hand_accelerometer_offset + 3 (n_dims_for_right_hand_accelerometer_data)\n",
557557
"\n",
558558
"right_hand_accelerometer_data[:, :] = clap_data[:, :]\n",
559559
"\n",

‎Week_1_data_structures/Lecture_data_structures.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@
237237
},
238238
{
239239
"cell_type": "code",
240-
"execution_count": 6,
240+
"execution_count": null,
241241
"metadata": {},
242242
"outputs": [],
243243
"source": [
244-
"# From Intro_assignment.ipynb, dictionary probelm\n",
244+
"# From Intro_assignment.ipynb, dictionary problem\n",
245245
"# Creating one variable for each value you want to store\n",
246246
"\n",
247247
"name = \"Me\"\n",

‎Week_1_data_structures/b_practice_numpy.ipynb‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,7 @@
9393
"source": [
9494
"## 2D matrix part 2\n",
9595
"\n",
96-
"TODO Now do the same thing again, but add padding by making the first column -1 and the last column 2. I.e, the new numpy array should be 2 x (size of linspace array + 2)\n",
97-
"\n",
98-
"my_new_padded_matrix = None\n",
99-
"\n",
100-
"print(f\"My matrix shape: {my_new_padded_matrix.shape}, should be (2, size of linspace array + 2)\")\n",
101-
"print(f\"First column is: {my_new_padded_matrix[:, 0]}, should be [-1. -1.]\")\n",
102-
"print(f\"Last column is: {my_new_padded_matrix[:, -1]}, should be [2. 2.]\")"
96+
"TODO Now do the same thing again, but add padding by making the first column -1 and the last column 2. I.e, the new numpy array should be 2 x (size of linspace array + 2)"
10397
]
10498
},
10599
{

‎Week_2_functions/Lab_2_functions.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
"# the last columns of all_data are set to the correct motion ids,\n",
227227
"# then check that the actual data in all_data is correct\n",
228228
"# Reminder that you can look in the files (eg, S01F01.csv) to see what the values should be\n",
229-
"# Reonder 2: If you have print statements in your functions that will also cause the autograder to fail"
229+
"# Reminder 2: If you have print statements in your functions that will also cause the autograder to fail"
230230
]
231231
},
232232
{
@@ -615,7 +615,7 @@
615615
"outputs": [],
616616
"source": [
617617
"# Boolean filters for getting rows for a specific motion type. \n",
618-
"# Motion type should extract the last columnb in the data\n",
618+
"# Motion type should extract the last column in the data\n",
619619
"# uncomment and get the last column\n",
620620
"# motion_type = all_data[:, ...]\n",
621621
"\n",

‎Week_2_functions/b_practice_functions.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"a = 3\n",
6161
"b = 7\n",
6262
"my_ret = add_two_numbers(a_number=a, b_number=b)\n",
63-
"assert my_ret == a * b\n"
63+
"assert my_ret == a + b\n"
6464
]
6565
}
6666
],

‎Week_4_fitting/HW_2_system_analysis.ipynb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@
169169
},
170170
"outputs": [],
171171
"source": [
172-
"\n",
173-
"\n",
174172
"# TODO: Add importing argrelmax and argrelmin to your imports. They are in scipy.signal\n",
175173
" \n",
176174
"# TODO: Write find_peak_or_valley function\n",
177-
"# This function takes in data and whether or not to search for the peak or the valley. It returns an index or None if no peak/valley\n",
175+
"# This function takes in data and whether or not to search for the peak or the valley. \n",
176+
"# It returns an index or empty numpy array if no peak/valley\n",
177+
"\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",
180180
" pass\n",
@@ -659,7 +659,7 @@
659659
"outputs": [],
660660
"source": [
661661
"# TODO write a function that takes in the starting conditions (x and the derivative of x), along with the parameters\n",
662-
"# you need to calculate the derivative (zeta, k, and m)\n",
662+
"# you need to calculate the derivative (c, k, and m)\n",
663663
"# Call integrate.odeint with the function you created above, plus your parameters, \n",
664664
"# and return the result of that function, along with the t values\n",
665665
"# You might also want pass in the step for the t and the total amount of time to integrate over as parameters\n",

‎Week_5_systems/Lecture_functions_II.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Functions, part 2, parameter passing (review)\n",
88
"\n",
9-
"- Call using paramter name\n",
9+
"- Call using parameter name\n",
1010
"- Default parameters"
1111
]
1212
},

0 commit comments

Comments
 (0)