Skip to content

Commit 4284fc7

Browse files
committed
asdf
1 parent 4cb4c2f commit 4284fc7

2 files changed

Lines changed: 43 additions & 51 deletions

File tree

‎Week_7_simulation/.OTTER_LOG‎

8.98 KB
Binary file not shown.

‎Week_7_simulation/Lab_7_simulating_quarter_car.ipynb‎

Lines changed: 43 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 49,
5+
"execution_count": 1,
66
"id": "3ab24fc6",
77
"metadata": {
88
"deletable": false,
@@ -43,7 +43,7 @@
4343
},
4444
{
4545
"cell_type": "code",
46-
"execution_count": 50,
46+
"execution_count": 2,
4747
"id": "90a94bfa",
4848
"metadata": {},
4949
"outputs": [],
@@ -79,7 +79,7 @@
7979
},
8080
{
8181
"cell_type": "code",
82-
"execution_count": 51,
82+
"execution_count": 3,
8383
"id": "af6651d5",
8484
"metadata": {
8585
"tags": [
@@ -90,7 +90,7 @@
9090
{
9191
"data": {
9292
"application/vnd.jupyter.widget-view+json": {
93-
"model_id": "2c46a97701a240788debf7aba355e01e",
93+
"model_id": "11acd3cd86564751bd96fb80c1cd8de0",
9494
"version_major": 2,
9595
"version_minor": 0
9696
},
@@ -161,7 +161,7 @@
161161
},
162162
{
163163
"cell_type": "code",
164-
"execution_count": 52,
164+
"execution_count": 4,
165165
"id": "1bcfdec0",
166166
"metadata": {
167167
"tags": [
@@ -172,7 +172,7 @@
172172
{
173173
"data": {
174174
"application/vnd.jupyter.widget-view+json": {
175-
"model_id": "cf61e0d9d2cd4781898fa4c0cb589a28",
175+
"model_id": "2255ec102757472faf427e9c770fb36d",
176176
"version_major": 2,
177177
"version_minor": 0
178178
},
@@ -242,7 +242,7 @@
242242
},
243243
{
244244
"cell_type": "code",
245-
"execution_count": 53,
245+
"execution_count": 5,
246246
"id": "a4e7d87f",
247247
"metadata": {
248248
"tags": [
@@ -269,26 +269,18 @@
269269
},
270270
{
271271
"cell_type": "code",
272-
"execution_count": 54,
272+
"execution_count": 6,
273273
"id": "ad916a26",
274274
"metadata": {
275275
"tags": [
276276
"otter_answer_cell"
277277
]
278278
},
279279
"outputs": [
280-
{
281-
"name": "stderr",
282-
"output_type": "stream",
283-
"text": [
284-
"C:\\Users\\cassi\\AppData\\Local\\Temp\\ipykernel_1704\\20620845.py:2: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`.\n",
285-
" fig_2, axs_2 = plt.subplots()\n"
286-
]
287-
},
288280
{
289281
"data": {
290282
"application/vnd.jupyter.widget-view+json": {
291-
"model_id": "3a141d9b541947c1a2d5da7873ea8584",
283+
"model_id": "9416be742f9d4d08abd8d7a8879a83d4",
292284
"version_major": 2,
293285
"version_minor": 0
294286
},
@@ -321,7 +313,7 @@
321313
},
322314
{
323315
"cell_type": "code",
324-
"execution_count": 55,
316+
"execution_count": 7,
325317
"id": "4efa1ea5",
326318
"metadata": {
327319
"deletable": false,
@@ -331,13 +323,13 @@
331323
{
332324
"data": {
333325
"text/html": [
334-
"<p><strong><pre style='display: inline;'>interpolate_road</pre></strong> passed! 🌈</p>"
326+
"<p><strong><pre style='display: inline;'>interpolate_road</pre></strong> passed! 🎉</p>"
335327
],
336328
"text/plain": [
337329
"interpolate_road results: All test cases passed!"
338330
]
339331
},
340-
"execution_count": 55,
332+
"execution_count": 7,
341333
"metadata": {},
342334
"output_type": "execute_result"
343335
}
@@ -360,7 +352,7 @@
360352
},
361353
{
362354
"cell_type": "code",
363-
"execution_count": 56,
355+
"execution_count": 8,
364356
"id": "545fec91",
365357
"metadata": {
366358
"tags": [
@@ -374,14 +366,14 @@
374366
"Text(0.5, 1.0, 'Sampling w/ 100.0ms timesteps')"
375367
]
376368
},
377-
"execution_count": 56,
369+
"execution_count": 8,
378370
"metadata": {},
379371
"output_type": "execute_result"
380372
},
381373
{
382374
"data": {
383375
"application/vnd.jupyter.widget-view+json": {
384-
"model_id": "1abbb232bc654b05a6d15b249851b693",
376+
"model_id": "244de03d49a249b4a1fa048b85b59f4a",
385377
"version_major": 2,
386378
"version_minor": 0
387379
},
@@ -426,7 +418,7 @@
426418
},
427419
{
428420
"cell_type": "code",
429-
"execution_count": 57,
421+
"execution_count": 9,
430422
"id": "323e62e0",
431423
"metadata": {
432424
"deletable": false,
@@ -436,13 +428,13 @@
436428
{
437429
"data": {
438430
"text/html": [
439-
"<p><strong><pre style='display: inline;'>interpolate_road_2</pre></strong> passed! 🙌</p>"
431+
"<p><strong><pre style='display: inline;'>interpolate_road_2</pre></strong> passed! 💯</p>"
440432
],
441433
"text/plain": [
442434
"interpolate_road_2 results: All test cases passed!"
443435
]
444436
},
445-
"execution_count": 57,
437+
"execution_count": 9,
446438
"metadata": {},
447439
"output_type": "execute_result"
448440
}
@@ -668,7 +660,7 @@
668660
},
669661
{
670662
"cell_type": "code",
671-
"execution_count": 58,
663+
"execution_count": 10,
672664
"id": "1d196801",
673665
"metadata": {
674666
"tags": [
@@ -789,7 +781,7 @@
789781
},
790782
{
791783
"cell_type": "code",
792-
"execution_count": 59,
784+
"execution_count": 11,
793785
"id": "9275d270",
794786
"metadata": {
795787
"tags": [
@@ -859,7 +851,7 @@
859851
},
860852
{
861853
"cell_type": "code",
862-
"execution_count": 60,
854+
"execution_count": 12,
863855
"id": "019dffff",
864856
"metadata": {
865857
"tags": [
@@ -916,7 +908,7 @@
916908
},
917909
{
918910
"cell_type": "code",
919-
"execution_count": 61,
911+
"execution_count": 25,
920912
"id": "195b3c37",
921913
"metadata": {
922914
"tags": [
@@ -927,7 +919,7 @@
927919
{
928920
"data": {
929921
"application/vnd.jupyter.widget-view+json": {
930-
"model_id": "cd06a87660e6495fb1dac9b60eea0350",
922+
"model_id": "475d8b9b177b4857adfa00c508ce5b95",
931923
"version_major": 2,
932924
"version_minor": 0
933925
},
@@ -993,7 +985,7 @@
993985
},
994986
{
995987
"cell_type": "code",
996-
"execution_count": 62,
988+
"execution_count": 14,
997989
"id": "fad07eac",
998990
"metadata": {
999991
"deletable": false,
@@ -1003,13 +995,13 @@
1003995
{
1004996
"data": {
1005997
"text/html": [
1006-
"<p><strong><pre style='display: inline;'>state_space_model</pre></strong> passed! 🌟</p>"
998+
"<p><strong><pre style='display: inline;'>state_space_model</pre></strong> passed! ✨</p>"
1007999
],
10081000
"text/plain": [
10091001
"state_space_model results: All test cases passed!"
10101002
]
10111003
},
1012-
"execution_count": 62,
1004+
"execution_count": 14,
10131005
"metadata": {},
10141006
"output_type": "execute_result"
10151007
}
@@ -1036,7 +1028,7 @@
10361028
},
10371029
{
10381030
"cell_type": "code",
1039-
"execution_count": 63,
1031+
"execution_count": 15,
10401032
"id": "92235235",
10411033
"metadata": {},
10421034
"outputs": [],
@@ -1080,7 +1072,7 @@
10801072
},
10811073
{
10821074
"cell_type": "code",
1083-
"execution_count": 64,
1075+
"execution_count": 26,
10841076
"id": "c6e2f863",
10851077
"metadata": {
10861078
"tags": [
@@ -1091,7 +1083,7 @@
10911083
{
10921084
"data": {
10931085
"application/vnd.jupyter.widget-view+json": {
1094-
"model_id": "e9764c331c01480080a569ce775ae7b9",
1086+
"model_id": "d2c94fc9ffd24dc8ac06afd882cc5c5e",
10951087
"version_major": 2,
10961088
"version_minor": 0
10971089
},
@@ -1128,7 +1120,7 @@
11281120
},
11291121
{
11301122
"cell_type": "code",
1131-
"execution_count": 79,
1123+
"execution_count": 27,
11321124
"id": "a15c3b00",
11331125
"metadata": {
11341126
"tags": [
@@ -1139,7 +1131,7 @@
11391131
{
11401132
"data": {
11411133
"application/vnd.jupyter.widget-view+json": {
1142-
"model_id": "564c79bfd6c4454e94cb61b5225b0a2c",
1134+
"model_id": "74969aba433f437090c9874113b8b49e",
11431135
"version_major": 2,
11441136
"version_minor": 0
11451137
},
@@ -1174,7 +1166,7 @@
11741166
},
11751167
{
11761168
"cell_type": "code",
1177-
"execution_count": 80,
1169+
"execution_count": 28,
11781170
"id": "b8711a8b",
11791171
"metadata": {
11801172
"tags": [
@@ -1185,7 +1177,7 @@
11851177
{
11861178
"data": {
11871179
"application/vnd.jupyter.widget-view+json": {
1188-
"model_id": "5ae25bc69fda41e2adfcbcd51ffab732",
1180+
"model_id": "78915ba78d704dd69b04d0d101b8428c",
11891181
"version_major": 2,
11901182
"version_minor": 0
11911183
},
@@ -1218,7 +1210,7 @@
12181210
},
12191211
{
12201212
"cell_type": "code",
1221-
"execution_count": 67,
1213+
"execution_count": 19,
12221214
"id": "014b859e",
12231215
"metadata": {
12241216
"tags": [
@@ -1257,7 +1249,7 @@
12571249
},
12581250
{
12591251
"cell_type": "code",
1260-
"execution_count": 75,
1252+
"execution_count": 30,
12611253
"id": "e6517e1a",
12621254
"metadata": {
12631255
"tags": [
@@ -1272,12 +1264,12 @@
12721264
"#\n",
12731265
"# Show your animation to a TA for signoff, and explain what you did.\n",
12741266
"X_r_haywire = np.concatenate(([0, 5], [5.01, 5.5], [5.51, 6.0], [6.01, 11]))\n",
1275-
"Y_r_haywire = np.concatenate(([0, 0], [0, 20], [20, 20], [1, 0])) #20 20 20"
1267+
"Y_r_haywire = np.concatenate(([0, 0], [0, 20], [20, 20], [1, 0])) #20 20 20 HUUUUGE BUMP IN THE ROAD"
12761268
]
12771269
},
12781270
{
12791271
"cell_type": "code",
1280-
"execution_count": 81,
1272+
"execution_count": 31,
12811273
"id": "14e761f1",
12821274
"metadata": {
12831275
"tags": [
@@ -1288,7 +1280,7 @@
12881280
{
12891281
"data": {
12901282
"application/vnd.jupyter.widget-view+json": {
1291-
"model_id": "6c280ba1dbe046af845226d8b268f158",
1283+
"model_id": "89b7552987764430a72433db60fb7596",
12921284
"version_major": 2,
12931285
"version_minor": 0
12941286
},
@@ -1318,7 +1310,7 @@
13181310
},
13191311
{
13201312
"cell_type": "code",
1321-
"execution_count": 70,
1313+
"execution_count": 22,
13221314
"id": "d5a16e0d",
13231315
"metadata": {
13241316
"tags": [
@@ -1358,7 +1350,7 @@
13581350
},
13591351
{
13601352
"cell_type": "code",
1361-
"execution_count": 71,
1353+
"execution_count": 23,
13621354
"id": "cd040c1e",
13631355
"metadata": {
13641356
"tags": [
@@ -1378,7 +1370,7 @@
13781370
},
13791371
{
13801372
"cell_type": "code",
1381-
"execution_count": 72,
1373+
"execution_count": 24,
13821374
"id": "9930d62c",
13831375
"metadata": {
13841376
"deletable": false,
@@ -1388,13 +1380,13 @@
13881380
{
13891381
"data": {
13901382
"text/html": [
1391-
"<p><strong><pre style='display: inline;'>hours_collaborators</pre></strong> passed! 🙌</p>"
1383+
"<p><strong><pre style='display: inline;'>hours_collaborators</pre></strong> passed! 💯</p>"
13921384
],
13931385
"text/plain": [
13941386
"hours_collaborators results: All test cases passed!"
13951387
]
13961388
},
1397-
"execution_count": 72,
1389+
"execution_count": 24,
13981390
"metadata": {},
13991391
"output_type": "execute_result"
14001392
}

0 commit comments

Comments
 (0)