Skip to content

Commit df11d10

Browse files
committed
Fixing end prompt
1 parent 6c8cf24 commit df11d10

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

Week_4_fitting/Lab_4_data_fitting.ipynb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@
7272
"\n",
7373
"# Read in week3_Motor position f1_success and failed\n",
7474
"data_successful = ... # Motor position f1_successful.csv\n",
75-
"data_failed = ... # Motor position f1_failed.csv\n",
76-
"# END PROMPT\"\"\"\n"
75+
"data_failed = ... # Motor position f1_failed.csv\n"
7776
]
7877
},
7978
{
@@ -113,8 +112,7 @@
113112
"outputs": [],
114113
"source": [
115114
"\n",
116-
"# TODO: Copy the fit_line_to_middle_bit function here\n",
117-
"# END PROMPT\"\"\"\n"
115+
"# TODO: Copy the fit_line_to_middle_bit function here\n"
118116
]
119117
},
120118
{
@@ -182,8 +180,7 @@
182180
" #. start_pt, end_pt = fit_line_to_middle_bit(ts, current row)\n",
183181
" # copy end_pt information into appropriate row in nx2 output\n",
184182
" #. return nx2 numpy array\n",
185-
" ...\n",
186-
"# END PROMPT \"\"\""
183+
" ...\n"
187184
]
188185
},
189186
{
@@ -338,8 +335,7 @@
338335
"# TODO: Optional: Read in the pick data and its description file, extract out the rows and columns you\n",
339336
"#. care about, and write that data out (should be same as the .csv files)\n",
340337
"data_wrist_force_successful = ...\n",
341-
"data_wrist_force_failed = ...\n",
342-
"# END PROMPT\"\"\"\n"
338+
"data_wrist_force_failed = ...\n"
343339
]
344340
},
345341
{
@@ -491,7 +487,7 @@
491487
" # Yes, this works - it's the same as doing r = row_offset + p // ncols on one line,\n",
492488
" # and c = p % n_cols on the second line\n",
493489
" r, c = row_offset + p // n_cols, p % n_cols\n",
494-
" axs[r, c].plot(ts, data_wrist_force_successful[p], label=\"Data\")\n",
490+
" axs[r, c].plot(ts, data[p], label=\"Data\")\n",
495491
"\n",
496492
" # Fit a polynomial of degree 3 to the variable data\n",
497493
" # Then plot the polynomial\n",

Week_4_fitting/lec_act_4_fitting.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@
6868
"\n",
6969
"# TODO Read in Motor position f1_success and failed .csv files\n",
7070
"data_successful = ... # Motor position f1_successful.csv\n",
71-
"data_failed = ... # Motor position f1_failed.csv\n",
72-
"# END PROMPT\"\"\"\n"
71+
"data_failed = ... # Motor position f1_failed.csv\n"
7372
]
7473
},
7574
{
@@ -214,7 +213,7 @@
214213
" y_max = ...\n",
215214
" x_min = ...\n",
216215
" x_max = ...\n",
217-
" # END PROMPT\"\"\"\n",
216+
" \n",
218217
" return (x_min, y_min), (x_max, y_max)\n"
219218
]
220219
},
@@ -278,7 +277,6 @@
278277
"ts = ...\n",
279278
"pt_start_successful, pt_end_successful = ...\n",
280279
"pt_start_failed, pt_end_failed = ...\n",
281-
"# END PROMPT\"\"\"\n",
282280
"\n",
283281
"print(f\"Last time step {ts[-1]}\")\n",
284282
"print(f\"Successful: {pt_start_successful} {pt_end_successful}\")\n",
@@ -330,7 +328,6 @@
330328
"ts = ...\n",
331329
"# TODO Plot original data and fitted line (see slides)\n",
332330
"# TODO: Put the end time value in the title\n",
333-
"# END PROMPT\"\"\"\n",
334331
"plt.tight_layout()\n"
335332
]
336333
},

0 commit comments

Comments
 (0)