From 309c549e1ba389aafc5edbd02e89cf383628d526 Mon Sep 17 00:00:00 2001 From: David Huss <dh@atoav.com> Date: Thu, 16 Nov 2023 23:46:08 +0100 Subject: [PATCH] Add output to jupyter script --- circuitsim/lookup-tables.ipynb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/circuitsim/lookup-tables.ipynb b/circuitsim/lookup-tables.ipynb index b30e8f1..24ef2a6 100644 --- a/circuitsim/lookup-tables.ipynb +++ b/circuitsim/lookup-tables.ipynb @@ -480,19 +480,19 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 10, "id": "e51416f3-f34d-4513-9f0c-fa52c468274e", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "1ca5e203dc524b9d939312138ecffcea", + "model_id": "570ed182aec64e329e88b59e79dc01a7", "version_major": 2, "version_minor": 0 }, "text/plain": [ - "interactive(children=(FloatSlider(value=0.2, description='f', max=10.1, min=-10.0, step=0.001), Output()), _do…" + "interactive(children=(FloatSlider(value=0.2, description='f', max=1.02, step=0.001), Output()), _dom_classes=(…" ] }, "metadata": {}, @@ -501,7 +501,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "6418d780e5664aa6b160a0322d143213", + "model_id": "7affea6bb3c84216bd6403065ae6415d", "version_major": 2, "version_minor": 0 }, @@ -518,7 +518,7 @@ "42" ] }, - "execution_count": 4, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -598,18 +598,18 @@ " [1.0, 1.0, 0.0],\n", "]\n", "\n", - "half_deadband = 0.1\n", + "half_deadband = 0.02\n", "\n", "lines_orig = [\n", - " [-10.0, -10.0, 0.0],\n", - " [-10.0+half_deadband, -10.0, 0.0],\n", + " [0.0, -1.0, 0.0],\n", + " [0.0+half_deadband, -1.0, 0.0],\n", "] \n", "\n", "steps = list(range(-9, 11))\n", "for i in steps:\n", " f = float(i)\n", - " lines_orig.append([f-half_deadband, f, 0.0])\n", - " lines_orig.append([f+half_deadband, f, 0.0])\n", + " lines_orig.append([0.5+f/20-half_deadband, f/10, 0.0])\n", + " lines_orig.append([0.5+f/20+half_deadband, f/10, 0.0])\n", "\n", "\n", "# Calculate curves for points of curvature\n", -- GitLab