Browse code

change sleep duration in functions in the example notebook

This is a much better default for people with a more average amount of cores.
The current defaults were set using a machine with 48 cores, which is not standard.

Bas Nijholt authored on 17/02/2018 14:17:11
Showing 1 changed files
... ...
@@ -68,7 +68,7 @@
68 68
     "\n",
69 69
     "    a = 0.01\n",
70 70
     "    if wait:\n",
71
-    "        sleep(random()*10)\n",
71
+    "        sleep(random())\n",
72 72
     "    return x + a**2 / (a**2 + (x - offset)**2)"
73 73
    ]
74 74
   },
... ...
@@ -182,7 +182,7 @@
182 182
     "    from time import sleep\n",
183 183
     "    from random import random\n",
184 184
     "    if wait:\n",
185
-    "        sleep(random())\n",
185
+    "        sleep(random()/10)\n",
186 186
     "    x, y = xy\n",
187 187
     "    a = 0.2\n",
188 188
     "    return x + np.exp(-(x**2 + y**2 - 0.75**2)**2/a**4)\n",