From 87dab4ef22babc213dff75828200f7073a5d0b08 Mon Sep 17 00:00:00 2001
From: j9ac9k <ognyan.moore@jacobs.ucsd.edu>
Date: Fri, 15 May 2015 14:50:54 -0700
Subject: [PATCH] Whops, committed too early

Commit 9233b506b6c195b6c72c810e23e7fe3c4c9f2414 was made incorrectly,
now corrected
---
 notebooks/chapter06_viz/06_vispy.ipynb | 26 +++++++-------------------
 1 file changed, 7 insertions(+), 19 deletions(-)

diff --git a/notebooks/chapter06_viz/06_vispy.ipynb b/notebooks/chapter06_viz/06_vispy.ipynb
index 1322fa7..ad4529d 100644
--- a/notebooks/chapter06_viz/06_vispy.ipynb
+++ b/notebooks/chapter06_viz/06_vispy.ipynb
@@ -147,27 +147,15 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": 8,
    "metadata": {
     "collapsed": false
    },
-   "outputs": [
-    {
-     "ename": "NameError",
-     "evalue": "name 'float32' is not defined",
-     "output_type": "error",
-     "traceback": [
-      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
-      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
-      "\u001b[1;32m<ipython-input-7-b8fd95d97318>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m      1\u001b[0m program['a_position'] = np.c_[\n\u001b[1;32m----> 2\u001b[1;33m         \u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mlinspace\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m-\u001b[0m\u001b[1;36m1.0\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m+\u001b[0m\u001b[1;36m1.0\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;36m1000\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mdtype\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mfloat32\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m      3\u001b[0m         np.random.uniform(-0.5, +0.5, 1000, dtype=float32)]\n",
-      "\u001b[1;31mNameError\u001b[0m: name 'float32' is not defined"
-     ]
-    }
-   ],
+   "outputs": [],
    "source": [
     "program['a_position'] = np.c_[\n",
-    "        np.linspace(-1.0, +1.0, 1000, dtype=float32),\n",
-    "        np.random.uniform(-0.5, +0.5, 1000, dtype=float32)]"
+    "        np.linspace(-1.0, +1.0, 1000).astype(np.float32),\n",
+    "        np.random.uniform(-0.5, +0.5, 1000).astype(np.float32)]"
    ]
   },
   {
@@ -179,7 +167,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 9,
    "metadata": {
     "collapsed": false
    },
@@ -199,7 +187,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 10,
    "metadata": {
     "collapsed": false
    },
@@ -220,7 +208,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 11,
    "metadata": {
     "collapsed": false
    },