Commit 44251699 authored by Hippalectryon's avatar Hippalectryon

videos

parent 0029ca5a
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from Amaury.God import Sky, Bird\n",
"import numpy as np"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4wLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvqOYd8AAAGIdJREFUeJzt3X10VPW97/H3lyQQggJyRJ5UEIvSFLhQs+hBKHUZarWHRVs5iLRQOLcsFKxXRBe01yJFuqyKtXQBPZYHofKkiCDqQm6lWC5CDzqhPOPlYBTkQYiSIiANkHzvHxloQibkYYbsmZ3Pa62szOzZe/aHrOTDb36z9x5zd0REJPU1CDqAiIgkhgpdRCQkVOgiIiGhQhcRCQkVuohISKjQRURCQoUuIhISKnQRkZCostDN7AUzO2pmO8osa2Fmb5vZf0e/X3V5Y4qISFWsqjNFzawvcBJ40d27RJc9Axxz96fM7GfAVe4+oaqdXX311d6hQ4f4Uwfs8OHDHDp0qNyyJk2a0Llz54ASiUiY5eXlfebuLataL72qFdz9/5pZh4sWfw+4LXr7j8BfgCoLvUOHDkQikapWS1ruzvjx43n22WcrPPbTn/6Up556KoBUIhJ2ZravOutVWeiVaOXuhwHc/bCZXVPL50kZxcXFjBkzhlmzZsV8vE+fPnWcSESkvMv+pqiZjTKziJlFCgoKLvfuLptz587x4IMP8u677/LNb36zwuO33nprAKlERP6ptoV+xMzaAES/H61sRXef5e457p7TsmWVU0BJq1GjRnTp0oWmTZuyYcMGANq3bw9Aly5daNGiRZDxRERqXeivA8Ojt4cDKxMTJ7m5O2PHjqWkpIQGDRrw+uuvM3jwYE23iEhSq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
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"L = 10\n",
"gridstep = 1\n",
"sky = Sky(L, gridstep)\n",
"sky.add_n_random_birds(10, 1)\n",
"\n",
"sky.update_grid()\n",
"sky.grid\n",
"\n",
"sky.plot()"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment