From 2b0b8446cdc63e9a9773691ad5e0fae1b49f7156 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Wed, 4 Sep 2024 15:22:25 +0200
Subject: [PATCH] test.ipynb: fix E402

---
 python/test/sandbox/test.ipynb | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/python/test/sandbox/test.ipynb b/python/test/sandbox/test.ipynb
index b50c948..e9dfacb 100644
--- a/python/test/sandbox/test.ipynb
+++ b/python/test/sandbox/test.ipynb
@@ -48,24 +48,20 @@
    ],
    "source": [
     "# importing classical numpy objects\n",
-    "import numpy as np\n",
-    "from numpy import array, dot, identity, zeros\n",
-    "from numpy.linalg import norm\n",
-    "\n",
-    "np.set_printoptions(formatter={\"float\": lambda x: f\"{x:0.1f}\"})\n",
-    "\n",
     "# use array representation for binding eigen objects to python\n",
-    "\n",
-    "\n",
     "# importing the bezier curve class\n",
     "import matplotlib.pyplot as plt\n",
     "import numpy as np\n",
+    "from numpy import array, dot, identity, zeros\n",
+    "from numpy.linalg import norm\n",
     "\n",
     "from ndcurves import bezier\n",
     "\n",
     "# importing tools to plot bezier curves\n",
     "from ndcurves.plot import plotBezier\n",
     "\n",
+    "np.set_printoptions(formatter={\"float\": lambda x: f\"{x:0.1f}\"})\n",
+    "\n",
     "# We describe a degree 3 curve as a Bezier curve with 4 control points\n",
     "waypoints = array(\n",
     "    [[1.0, 2.0, 3.0], [-4.0, -5.0, -6.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]]\n",
-- 
GitLab