Skip to content

Commit

Permalink
Whops, committed too early
Browse files Browse the repository at this point in the history
Commit 9233b50 was made incorrectly,
now corrected
  • Loading branch information
j9ac9k committed May 15, 2015
1 parent 9233b50 commit 87dab4e
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions notebooks/chapter06_viz/06_vispy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)]"
]
},
{
Expand All @@ -179,7 +167,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {
"collapsed": false
},
Expand All @@ -199,7 +187,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"metadata": {
"collapsed": false
},
Expand All @@ -220,7 +208,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"metadata": {
"collapsed": false
},
Expand Down

0 comments on commit 87dab4e

Please sign in to comment.