aboutsummaryrefslogtreecommitdiff
path: root/epare/simulate.ipynb
diff options
context:
space:
mode:
authorJ08nY2025-03-10 19:41:59 +0100
committerJ08nY2025-04-16 12:25:06 +0200
commit6dde089b1f2f85583aa546fabe0645fe0fd0cb3b (patch)
treee135243f40a938b80cc70a378b7b9b34f0a4080c /epare/simulate.ipynb
parentca59db2917f9de89602c90673d08895a4d3f484d (diff)
downloadECTester-6dde089b1f2f85583aa546fabe0645fe0fd0cb3b.tar.gz
ECTester-6dde089b1f2f85583aa546fabe0645fe0fd0cb3b.tar.zst
ECTester-6dde089b1f2f85583aa546fabe0645fe0fd0cb3b.zip
Remove RE notebook. Fix simulate one.
Diffstat (limited to 'epare/simulate.ipynb')
-rw-r--r--epare/simulate.ipynb59
1 files changed, 9 insertions, 50 deletions
diff --git a/epare/simulate.ipynb b/epare/simulate.ipynb
index 186950b..74cfe2b 100644
--- a/epare/simulate.ipynb
+++ b/epare/simulate.ipynb
@@ -10,7 +10,7 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"id": "b4386513-cc14-434b-a748-2863f8657452",
"metadata": {},
"outputs": [],
@@ -52,7 +52,7 @@
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": null,
"id": "5c0e42dc-8c61-4e2e-962c-6af48f6eb321",
"metadata": {},
"outputs": [],
@@ -116,25 +116,17 @@
},
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": null,
"id": "a660e3ac-401b-47a0-92de-55afe63c420a",
"metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "41\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"print(len(all_mults))"
]
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": null,
"id": "07bc266d-35eb-4f6d-bdba-e9f6f66827f1",
"metadata": {},
"outputs": [],
@@ -180,7 +172,7 @@
},
{
"cell_type": "code",
- "execution_count": 5,
+ "execution_count": null,
"id": "bb604b15-4ad6-43c0-9cfa-1b31611d73ce",
"metadata": {},
"outputs": [],
@@ -190,7 +182,7 @@
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": null,
"id": "4d5c7f10-618f-4612-b594-81d1607b0d1d",
"metadata": {},
"outputs": [],
@@ -215,43 +207,10 @@
},
{
"cell_type": "code",
- "execution_count": 7,
+ "execution_count": null,
"id": "84359084-4116-436c-92cd-d43fdfeca842",
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/vnd.jupyter.widget-view+json": {
- "model_id": "0f2977641ab546afafc38be4f638f92c",
- "version_major": 2,
- "version_minor": 0
- },
- "text/plain": [
- "Computing small scalar distributions.: 0%| | 0/41 [00:00<?, ?it/s]"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Got SlidingWindowMultiplier_()_{'width': 4}.\n"
- ]
- },
- {
- "ename": "NameError",
- "evalue": "name 'res' is not defined",
- "output_type": "error",
- "traceback": [
- "\u001b[31m---------------------------------------------------------------------------\u001b[39m",
- "\u001b[31mNameError\u001b[39m Traceback (most recent call last)",
- "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[7]\u001b[39m\u001b[32m, line 12\u001b[39m\n\u001b[32m 10\u001b[39m \u001b[38;5;28;01mcontinue\u001b[39;00m\n\u001b[32m 11\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m mult \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;129;01min\u001b[39;00m multiples_mults:\n\u001b[32m---> \u001b[39m\u001b[32m12\u001b[39m multiples_mults[mult] = \u001b[43mres\u001b[49m\n\u001b[32m 13\u001b[39m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[32m 14\u001b[39m \u001b[38;5;66;03m# Accumulate\u001b[39;00m\n\u001b[32m 15\u001b[39m multiples_mults[mult].merge(res)\n",
- "\u001b[31mNameError\u001b[39m: name 'res' is not defined"
- ]
- }
- ],
+ "outputs": [],
"source": [
"with TaskExecutor(max_workers=num_workers, mp_context=spawn_context) as pool, enable_spawn(get_small_scalar_multiples) as target:\n",
" for mult in selected_mults:\n",