Skip to content

Commit 8feb611

Browse files
committed
Fixes for Spring 2024
1 parent 2c0dc52 commit 8feb611

23 files changed

Lines changed: 1293 additions & 971 deletions

Week_10_classes/lec_act_10_class_pinball_wall.ipynb

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"\n",
258258
"# List of names (creates a set)\n",
259259
"worked_with_names = {\"not filled out\"}\n",
260-
"# List of URLS TCW3 (creates a set)\n",
260+
"# List of URLS TCS3 (creates a set)\n",
261261
"websites = {\"not filled out\"}\n",
262262
"# Approximate number of hours, including lab/in-class time\n",
263263
"hours = -1.5"
@@ -277,36 +277,18 @@
277277
},
278278
{
279279
"cell_type": "markdown",
280-
"metadata": {
281-
"deletable": false,
282-
"editable": false
283-
},
280+
"metadata": {},
284281
"source": [
285-
"## Submission\n",
282+
"### To submit\n",
286283
"\n",
287-
"Make sure you have run all cells in your notebook in order before running the cell below, so that all images/graphs appear in the output. The cell below will generate a zip file for you to submit. **Please save before exporting!**\n",
284+
"Make sure you include any .py files you are importing.\n",
288285
"\n",
289-
"Submit through gradescope, Lecture activity 10: Class pinball wall"
290-
]
291-
},
292-
{
293-
"cell_type": "code",
294-
"execution_count": null,
295-
"metadata": {
296-
"deletable": false,
297-
"editable": false
298-
},
299-
"outputs": [],
300-
"source": [
301-
"# Save your notebook first, then run this cell to export your submission.\n",
302-
"grader.export(run_tests=True)"
303-
]
304-
},
305-
{
306-
"cell_type": "markdown",
307-
"metadata": {},
308-
"source": [
309-
" "
286+
"- Submit this .ipynb file and all .py files you are using to Lecture activity 10: Classes\n",
287+
"\n",
288+
"If the Gradescope autograder fails, please check here first for common reasons for it to fail\n",
289+
" https://docs.google.com/presentation/d/1tYa5oycUiG4YhXUq5vHvPOpWJ4k_xUPp2rUNIL7Q9RI/edit?usp=sharing\n",
290+
"\n",
291+
"The primary problem with this submission is forgetting the .py files..."
310292
]
311293
}
312294
],
@@ -326,7 +308,7 @@
326308
"name": "python",
327309
"nbconvert_exporter": "python",
328310
"pygments_lexer": "ipython3",
329-
"version": "3.11.4"
311+
"version": "3.11.7"
330312
},
331313
"otter": {
332314
"OK_FORMAT": true,

Week_1_data_structures/HW_1_numpy_and_plotting.ipynb

Lines changed: 17 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@
396396
"source": [
397397
"## Week 2, Problem 3 - stats for all channels\n",
398398
"\n",
399-
"In this problem we put it all together - loop over all of the data channels, calculate the stats for each, then add those stats back into the **proxy_data_description** dictionary. The pseudo code is:\n",
399+
"In this problem we put it all together - loop over all of the data channels, calculate the stats for each, then add those stats back into the **pick_data_description** dictionary. The pseudo code is:\n",
400400
"\n",
401-
"for each data channel in **proxy_data_description**\n",
401+
"for each data channel in **pick_data_description**\n",
402402
"- use **get_channel_data** to get out the data for just that channel\n",
403403
"- call **get_stats_for_channel** to get the stats\n",
404404
"- add those stats to the channel dictionary with the key \"stats\"\n"
@@ -573,7 +573,7 @@
573573
"\n",
574574
"# Step 4: Now use the boolean array in pick_data_dict to get out just the rows of the successful data (another data slice)\n",
575575
"\n",
576-
"# Step 5: Call calc_stats with that slice you just made - this will do the stats for JUST the successful data\n",
576+
"# Step 5: Call calc_stats_for_channel with that slice you just made - this will do the stats for JUST the successful data\n",
577577
"\n",
578578
"# Step 6: Extract the max from the returned stats - this is where you use xyz_dim, to pick out one of the x,y,z stats\n",
579579
"\n",
@@ -694,7 +694,7 @@
694694
"\n",
695695
" map_to_xyz = ['x', 'y', 'z']\n",
696696
"\n",
697-
" # TODO: Copy your lab 2 part 2 code here\n",
697+
" # TODO: Copy your lab 3 part 2 code here\n",
698698
" # 1 - change the y label to be units, and the title to be title\n",
699699
" # 2 You'll want a for loop to handle dimensions\n",
700700
" # 3 Add in a horizontal line for the min, and one for the max\n",
@@ -918,7 +918,7 @@
918918
"\n",
919919
"# List of names (creates a set)\n",
920920
"worked_with_names = {\"not filled out\"}\n",
921-
"# List of URLS TCW3 (creates a set)\n",
921+
"# List of URLS TCS3 (creates a set)\n",
922922
"websites = {\"not filled out\"}\n",
923923
"# Approximate number of hours, including lab/in-class time\n",
924924
"hours = -1.5"
@@ -938,36 +938,20 @@
938938
},
939939
{
940940
"cell_type": "markdown",
941-
"metadata": {
942-
"deletable": false,
943-
"editable": false
944-
},
941+
"metadata": {},
945942
"source": [
946-
"## Submission\n",
943+
"### To submit\n",
947944
"\n",
948-
"Make sure you have run all cells in your notebook in order before running the cell below, so that all images/graphs appear in the output. The cell below will generate a zip file for you to submit. **Please save before exporting!**\n",
945+
"- Do a restart then run all to make sure everything runs ok\n",
946+
"- Remove excessive print statements - don't make us search through pages of numbers to find your plots\n",
947+
"- Save the file\n",
948+
"- Submit just this .ipynb file through gradescope, HWK1 numpy and Plotting\n",
949+
"- You do NOT need to submit the data files - we will supply those\n",
949950
"\n",
950-
"Submit just the .ipynb file to Gradescope, HWK1 numpy and Plotting. You do not need to put in the data files. Don't change the provided variable names or autograding will fail."
951-
]
952-
},
953-
{
954-
"cell_type": "code",
955-
"execution_count": null,
956-
"metadata": {
957-
"deletable": false,
958-
"editable": false
959-
},
960-
"outputs": [],
961-
"source": [
962-
"# Save your notebook first, then run this cell to export your submission.\n",
963-
"grader.export(pdf=False, run_tests=True)"
964-
]
965-
},
966-
{
967-
"cell_type": "markdown",
968-
"metadata": {},
969-
"source": [
970-
" "
951+
"If the Gradescope autograder fails, please check here first for common reasons for it to fail\n",
952+
" https://docs.google.com/presentation/d/1tYa5oycUiG4YhXUq5vHvPOpWJ4k_xUPp2rUNIL7Q9RI/edit?usp=sharing\n",
953+
"\n",
954+
"Most likely failure for this assignment is not naming the data directory and files correctly; capitalization matters for the Gradescope grader. "
971955
]
972956
}
973957
],
@@ -987,7 +971,7 @@
987971
"name": "python",
988972
"nbconvert_exporter": "python",
989973
"pygments_lexer": "ipython3",
990-
"version": "3.11.4"
974+
"version": "3.11.7"
991975
},
992976
"otter": {
993977
"OK_FORMAT": true,

Week_1_data_structures/Lab_1_arrays_and_dictionaries.ipynb

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@
532532
"- Now change the column slice from all columns (:) to starting at the offset value you just calculated.\n",
533533
"- Now change the slice to take a step/stride of **n_total_dims** instead of 1\n",
534534
"- Reminder: slicing is **start:end:step**\n",
535+
"- Reminder part two: You need to index both the rows and the columns [rows, cols]. So you need one slice for the rows (this is the easy slice - you want all of the rows) and a second slice for which columns you want (this is the one that needs a start:end:step slice).\n",
535536
"\n",
536537
"Note: You don't need to put an end value in - just leave it blank if you want to go all the way to the end\n",
537538
"\n",
@@ -812,7 +813,7 @@
812813
"\n",
813814
"# List of names (creates a set)\n",
814815
"worked_with_names = {\"not filled out\"}\n",
815-
"# List of URLS TCW3 (creates a set)\n",
816+
"# List of URLS TCS3 (creates a set)\n",
816817
"websites = {\"not filled out\"}\n",
817818
"# Approximate number of hours, including lab/in-class time\n",
818819
"hours = -1.5"
@@ -832,36 +833,20 @@
832833
},
833834
{
834835
"cell_type": "markdown",
835-
"metadata": {
836-
"deletable": false,
837-
"editable": false
838-
},
836+
"metadata": {},
839837
"source": [
840-
"## Submission\n",
838+
"### To submit\n",
841839
"\n",
842-
"Make sure you have run all cells in your notebook in order before running the cell below, so that all images/graphs appear in the output. The cell below will generate a zip file for you to submit. **Please save before exporting!**\n",
840+
"- Do a restart then run all to make sure everything runs ok\n",
841+
"- Remove print statements that print out a lot of stuff\n",
842+
"- Save the file\n",
843+
"- Submit just this .ipynb file through gradescope, lab 1 arrays and dictionaries\n",
844+
"- You do NOT need to submit the data files - we will supply those\n",
843845
"\n",
844-
"Submit just the .ipynb file to Gradescope (Lab 1 Arrays and dictionaries). You do not need to submit the data files. Don't change the provided variable names or autograding will fail. Make sure to do a restart and run all before turning in. Look at the Gradescope grading rubric for code-quality checks."
845-
]
846-
},
847-
{
848-
"cell_type": "code",
849-
"execution_count": null,
850-
"metadata": {
851-
"deletable": false,
852-
"editable": false
853-
},
854-
"outputs": [],
855-
"source": [
856-
"# Save your notebook first, then run this cell to export your submission.\n",
857-
"grader.export(pdf=False, run_tests=True)"
858-
]
859-
},
860-
{
861-
"cell_type": "markdown",
862-
"metadata": {},
863-
"source": [
864-
" "
846+
"If the Gradescope autograder fails, please check here first for common reasons for it to fail\n",
847+
" https://docs.google.com/presentation/d/1tYa5oycUiG4YhXUq5vHvPOpWJ4k_xUPp2rUNIL7Q9RI/edit?usp=sharing\n",
848+
"\n",
849+
"Most likely failure for this assignment is not naming the data directory and files correctly; capitalization matters for the Gradescope grader."
865850
]
866851
}
867852
],
@@ -881,7 +866,7 @@
881866
"name": "python",
882867
"nbconvert_exporter": "python",
883868
"pygments_lexer": "ipython3",
884-
"version": "3.11.5"
869+
"version": "3.11.7"
885870
},
886871
"otter": {
887872
"OK_FORMAT": true,

Week_1_data_structures/lec_act_1_data_structures.ipynb

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@
507507
"\n",
508508
"# List of names (creates a set)\n",
509509
"worked_with_names = {\"not filled out\"}\n",
510-
"# List of URLS TCW3 (creates a set)\n",
510+
"# List of URLS TCS3 (creates a set)\n",
511511
"websites = {\"not filled out\"}\n",
512512
"# Approximate number of hours, including lab/in-class time\n",
513513
"hours = -1.5"
@@ -527,36 +527,17 @@
527527
},
528528
{
529529
"cell_type": "markdown",
530-
"metadata": {
531-
"deletable": false,
532-
"editable": false
533-
},
530+
"metadata": {},
534531
"source": [
535-
"## Submission\n",
532+
"### To submit\n",
536533
"\n",
537-
"Make sure you have run all cells in your notebook in order before running the cell below, so that all images/graphs appear in the output. The cell below will generate a zip file for you to submit. **Please save before exporting!**\n",
534+
"- Remove any print statements that print out a lot of stuff\n",
535+
"- Do a restart then run all to make sure everything runs ok\n",
536+
"- Save the file\n",
537+
"- Submit this .ipynb file through gradescope, lecture activity 1 data structures. \n",
538538
"\n",
539-
"Submit through gradescope, lecture activity 1 data structures. Be sure to read the info on the autograder before submitting."
540-
]
541-
},
542-
{
543-
"cell_type": "code",
544-
"execution_count": null,
545-
"metadata": {
546-
"deletable": false,
547-
"editable": false
548-
},
549-
"outputs": [],
550-
"source": [
551-
"# Save your notebook first, then run this cell to export your submission.\n",
552-
"grader.export(pdf=False, run_tests=True)"
553-
]
554-
},
555-
{
556-
"cell_type": "markdown",
557-
"metadata": {},
558-
"source": [
559-
" "
539+
"See detailed instructions here\n",
540+
" https://docs.google.com/presentation/d/1tYa5oycUiG4YhXUq5vHvPOpWJ4k_xUPp2rUNIL7Q9RI/edit?usp=sharing"
560541
]
561542
}
562543
],
@@ -576,7 +557,7 @@
576557
"name": "python",
577558
"nbconvert_exporter": "python",
578559
"pygments_lexer": "ipython3",
579-
"version": "3.11.5"
560+
"version": "3.11.7"
580561
},
581562
"otter": {
582563
"OK_FORMAT": true,

Week_2_functions/Lab_2_functions.ipynb

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
"\n",
513513
"# List of names (creates a set)\n",
514514
"worked_with_names = {\"not filled out\"}\n",
515-
"# List of URLS TCW3 (creates a set)\n",
515+
"# List of URLS TCS3 (creates a set)\n",
516516
"websites = {\"not filled out\"}\n",
517517
"# Approximate number of hours, including lab/in-class time\n",
518518
"hours = -1.5"
@@ -532,36 +532,20 @@
532532
},
533533
{
534534
"cell_type": "markdown",
535-
"metadata": {
536-
"deletable": false,
537-
"editable": false
538-
},
535+
"metadata": {},
539536
"source": [
540-
"## Submission\n",
537+
"### To submit\n",
541538
"\n",
542-
"Make sure you have run all cells in your notebook in order before running the cell below, so that all images/graphs appear in the output. The cell below will generate a zip file for you to submit. **Please save before exporting!**\n",
539+
"- Do a restart then run all to make sure everything runs ok\n",
540+
"- Save the file\n",
541+
"- Submit just this .ipynb file through gradescope, Lab 2, functions\n",
542+
"- You do NOT need to submit the data files - we will supply those\n",
543+
"- Where there are given variable/file names (eg, foo = ...) DON'T change those, or the autograder will fail\n",
543544
"\n",
544-
"Submit just the .ipynb file to Gradescope (Lab 2 functions). You do not need to submit the data files. Don't change the provided variable names or autograding will fail. Look at the Gradescope grading rubric for code-quality checks."
545-
]
546-
},
547-
{
548-
"cell_type": "code",
549-
"execution_count": null,
550-
"metadata": {
551-
"deletable": false,
552-
"editable": false
553-
},
554-
"outputs": [],
555-
"source": [
556-
"# Save your notebook first, then run this cell to export your submission.\n",
557-
"grader.export(pdf=False, run_tests=True)"
558-
]
559-
},
560-
{
561-
"cell_type": "markdown",
562-
"metadata": {},
563-
"source": [
564-
" "
545+
"If the Gradescope autograder fails, please check here first for common reasons for it to fail\n",
546+
" https://docs.google.com/presentation/d/1tYa5oycUiG4YhXUq5vHvPOpWJ4k_xUPp2rUNIL7Q9RI/edit?usp=sharing\n",
547+
"\n",
548+
"Most likely failure for this assignment is not naming the data directory and files correctly; capitalization matters for the Gradescope grader. "
565549
]
566550
}
567551
],
@@ -581,7 +565,7 @@
581565
"name": "python",
582566
"nbconvert_exporter": "python",
583567
"pygments_lexer": "ipython3",
584-
"version": "3.11.4"
568+
"version": "3.11.7"
585569
},
586570
"otter": {
587571
"OK_FORMAT": true,

0 commit comments

Comments
 (0)