|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "code", |
5 | | -<<<<<<< HEAD |
6 | | - "execution_count": 2, |
7 | | -======= |
8 | | - "execution_count": 1, |
9 | | ->>>>>>> 0c58d27a2b21bcdedb2b8400bc93f5ca628e9709 |
| 5 | + "execution_count": 8, |
10 | 6 | "metadata": { |
11 | 7 | "deletable": false, |
12 | 8 | "editable": false |
|
15 | 11 | "source": [ |
16 | 12 | "# Initialize Otter\n", |
17 | 13 | "import otter\n", |
18 | | - "grader = otter.Notebook(\"lec_act_5_predator_prey.ipynb\")" |
| 14 | + "grader = otter.Notebook(\"lec_act_5_predator_prey (1).ipynb\")" |
19 | 15 | ] |
20 | 16 | }, |
21 | 17 | { |
|
45 | 41 | }, |
46 | 42 | { |
47 | 43 | "cell_type": "code", |
48 | | -<<<<<<< HEAD |
49 | | - "execution_count": 3, |
50 | | -======= |
51 | | - "execution_count": 2, |
52 | | ->>>>>>> 0c58d27a2b21bcdedb2b8400bc93f5ca628e9709 |
| 44 | + "execution_count": 9, |
53 | 45 | "metadata": {}, |
54 | 46 | "outputs": [], |
55 | 47 | "source": [ |
|
84 | 76 | }, |
85 | 77 | { |
86 | 78 | "cell_type": "code", |
87 | | -<<<<<<< HEAD |
88 | | - "execution_count": 4, |
89 | | -======= |
90 | | - "execution_count": 3, |
91 | | ->>>>>>> 0c58d27a2b21bcdedb2b8400bc93f5ca628e9709 |
| 79 | + "execution_count": 10, |
92 | 80 | "metadata": { |
93 | 81 | "tags": [ |
94 | 82 | "otter_answer_cell" |
|
109 | 97 | }, |
110 | 98 | { |
111 | 99 | "cell_type": "code", |
112 | | -<<<<<<< HEAD |
113 | | - "execution_count": 5, |
114 | | -======= |
115 | | - "execution_count": 4, |
116 | | ->>>>>>> 0c58d27a2b21bcdedb2b8400bc93f5ca628e9709 |
| 100 | + "execution_count": 11, |
117 | 101 | "metadata": { |
118 | 102 | "tags": [ |
119 | 103 | "otter_answer_cell" |
120 | 104 | ] |
121 | 105 | }, |
122 | 106 | "outputs": [ |
123 | 107 | { |
124 | | -<<<<<<< HEAD |
125 | | - "ename": "TypeError", |
126 | | - "evalue": "compute_prey_from_prey_and_predator() got an unexpected keyword argument 'prey'", |
127 | | - "output_type": "error", |
128 | | - "traceback": [ |
129 | | - "\u001b[31m---------------------------------------------------------------------------\u001b[39m", |
130 | | - "\u001b[31mTypeError\u001b[39m Traceback (most recent call last)", |
131 | | - "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[5]\u001b[39m\u001b[32m, line 18\u001b[39m\n\u001b[32m 14\u001b[39m \n\u001b[32m 15\u001b[39m prey_initial = \u001b[32m100\u001b[39m\n\u001b[32m 16\u001b[39m predator_initial = \u001b[32m100\u001b[39m\n\u001b[32m 17\u001b[39m \n\u001b[32m---> \u001b[39m\u001b[32m18\u001b[39m prey_new = compute_prey_from_prey_and_predator(prey=prey_initial, predator=predator_initial, params=params)\n\u001b[32m 19\u001b[39m \n\u001b[32m 20\u001b[39m print(f\"Checking prey new {prey_new}, should be 90\")\n", |
132 | | - "\u001b[31mTypeError\u001b[39m: compute_prey_from_prey_and_predator() got an unexpected keyword argument 'prey'" |
133 | | -======= |
134 | 108 | "name": "stdout", |
135 | 109 | "output_type": "stream", |
136 | 110 | "text": [ |
137 | 111 | "Checking prey new 90.0, should be 90\n" |
138 | | ->>>>>>> 0c58d27a2b21bcdedb2b8400bc93f5ca628e9709 |
139 | 112 | ] |
140 | 113 | } |
141 | 114 | ], |
|
164 | 137 | }, |
165 | 138 | { |
166 | 139 | "cell_type": "code", |
167 | | - "execution_count": 5, |
| 140 | + "execution_count": 12, |
168 | 141 | "metadata": { |
169 | 142 | "deletable": false, |
170 | 143 | "editable": false |
|
173 | 146 | { |
174 | 147 | "data": { |
175 | 148 | "text/html": [ |
176 | | - "<p><strong><pre style='display: inline;'>prey_from_prey_and_predator</pre></strong> passed! 🍀</p>" |
| 149 | + "<p><strong><pre style='display: inline;'>prey_from_prey_and_predator</pre></strong> passed! 🙌</p>" |
177 | 150 | ], |
178 | 151 | "text/plain": [ |
179 | 152 | "prey_from_prey_and_predator results: All test cases passed!" |
180 | 153 | ] |
181 | 154 | }, |
182 | | - "execution_count": 5, |
| 155 | + "execution_count": 12, |
183 | 156 | "metadata": {}, |
184 | 157 | "output_type": "execute_result" |
185 | 158 | } |
|
218 | 191 | }, |
219 | 192 | { |
220 | 193 | "cell_type": "code", |
221 | | - "execution_count": 6, |
| 194 | + "execution_count": 13, |
222 | 195 | "metadata": { |
223 | 196 | "tags": [ |
224 | 197 | "otter_answer_cell" |
|
239 | 212 | }, |
240 | 213 | { |
241 | 214 | "cell_type": "code", |
242 | | - "execution_count": 7, |
| 215 | + "execution_count": 14, |
243 | 216 | "metadata": { |
244 | 217 | "tags": [ |
245 | 218 | "otter_answer_cell" |
|
263 | 236 | }, |
264 | 237 | { |
265 | 238 | "cell_type": "code", |
266 | | - "execution_count": 8, |
| 239 | + "execution_count": 15, |
267 | 240 | "metadata": { |
268 | 241 | "deletable": false, |
269 | 242 | "editable": false |
|
272 | 245 | { |
273 | 246 | "data": { |
274 | 247 | "text/html": [ |
275 | | - "<p><strong><pre style='display: inline;'>predator_from_prey_and_predator</pre></strong> passed! 🍀</p>" |
| 248 | + "<p><strong><pre style='display: inline;'>predator_from_prey_and_predator</pre></strong> passed! 🙌</p>" |
276 | 249 | ], |
277 | 250 | "text/plain": [ |
278 | 251 | "predator_from_prey_and_predator results: All test cases passed!" |
279 | 252 | ] |
280 | 253 | }, |
281 | | - "execution_count": 8, |
| 254 | + "execution_count": 15, |
282 | 255 | "metadata": {}, |
283 | 256 | "output_type": "execute_result" |
284 | 257 | } |
|
315 | 288 | }, |
316 | 289 | { |
317 | 290 | "cell_type": "code", |
318 | | - "execution_count": 9, |
| 291 | + "execution_count": 16, |
319 | 292 | "metadata": { |
320 | 293 | "tags": [ |
321 | 294 | "otter_answer_cell" |
|
337 | 310 | }, |
338 | 311 | { |
339 | 312 | "cell_type": "code", |
340 | | - "execution_count": 10, |
| 313 | + "execution_count": 17, |
341 | 314 | "metadata": { |
342 | 315 | "tags": [ |
343 | 316 | "otter_answer_cell" |
|
361 | 334 | }, |
362 | 335 | { |
363 | 336 | "cell_type": "code", |
364 | | - "execution_count": 11, |
| 337 | + "execution_count": 18, |
365 | 338 | "metadata": { |
366 | 339 | "deletable": false, |
367 | 340 | "editable": false |
|
370 | 343 | { |
371 | 344 | "data": { |
372 | 345 | "text/html": [ |
373 | | - "<p><strong><pre style='display: inline;'>compute_one_time_step</pre></strong> passed! ✨</p>" |
| 346 | + "<p><strong><pre style='display: inline;'>compute_one_time_step</pre></strong> passed! 🍀</p>" |
374 | 347 | ], |
375 | 348 | "text/plain": [ |
376 | 349 | "compute_one_time_step results: All test cases passed!" |
377 | 350 | ] |
378 | 351 | }, |
379 | | - "execution_count": 11, |
| 352 | + "execution_count": 18, |
380 | 353 | "metadata": {}, |
381 | 354 | "output_type": "execute_result" |
382 | 355 | } |
|
402 | 375 | }, |
403 | 376 | { |
404 | 377 | "cell_type": "code", |
405 | | - "execution_count": 14, |
| 378 | + "execution_count": 19, |
406 | 379 | "metadata": { |
407 | 380 | "tags": [ |
408 | 381 | "otter_answer_cell" |
|
421 | 394 | }, |
422 | 395 | { |
423 | 396 | "cell_type": "code", |
424 | | - "execution_count": 15, |
| 397 | + "execution_count": 20, |
425 | 398 | "metadata": { |
426 | 399 | "deletable": false, |
427 | 400 | "editable": false |
|
430 | 403 | { |
431 | 404 | "data": { |
432 | 405 | "text/html": [ |
433 | | - "<p><strong><pre style='display: inline;'>hours_collaborators</pre></strong> passed! 🎉</p>" |
| 406 | + "<p><strong><pre style='display: inline;'>hours_collaborators</pre></strong> passed! 🍀</p>" |
434 | 407 | ], |
435 | 408 | "text/plain": [ |
436 | 409 | "hours_collaborators results: All test cases passed!" |
437 | 410 | ] |
438 | 411 | }, |
439 | | - "execution_count": 15, |
| 412 | + "execution_count": 20, |
440 | 413 | "metadata": {}, |
441 | 414 | "output_type": "execute_result" |
442 | 415 | } |
|
464 | 437 | ], |
465 | 438 | "metadata": { |
466 | 439 | "kernelspec": { |
467 | | -<<<<<<< HEAD |
468 | 440 | "display_name": "intropythonprogramming (3.12.7)", |
469 | | -======= |
470 | | - "display_name": "intropythonprogramming", |
471 | | ->>>>>>> 0c58d27a2b21bcdedb2b8400bc93f5ca628e9709 |
472 | 441 | "language": "python", |
473 | 442 | "name": "python3" |
474 | 443 | }, |
|
0 commit comments