diff --git a/Tests/algorithms_test.ipynb b/Tests/algorithms_test.ipynb index 1906acb..eb7e0be 100644 --- a/Tests/algorithms_test.ipynb +++ b/Tests/algorithms_test.ipynb @@ -1,28 +1,19 @@ { "cells": [ { - "metadata": { - "ExecuteTime": { - "end_time": "2026-02-09T10:12:48.665236Z", - "start_time": "2026-02-09T10:12:48.507869Z" - } - }, + "metadata": {}, "cell_type": "code", "source": [ + "from requests import delete\n", "%load_ext autoreload\n", "%autoreload 2" ], "id": "89aa93e9dbedd113", "outputs": [], - "execution_count": 1 + "execution_count": null }, { - "metadata": { - "ExecuteTime": { - "end_time": "2026-02-09T10:12:50.479637Z", - "start_time": "2026-02-09T10:12:49.503680Z" - } - }, + "metadata": {}, "cell_type": "code", "source": [ "%reload_ext autoreload\n", @@ -58,15 +49,10 @@ ], "id": "2005e5a8854eea1e", "outputs": [], - "execution_count": 2 + "execution_count": null }, { - "metadata": { - "ExecuteTime": { - "end_time": "2026-02-09T09:02:39.843851Z", - "start_time": "2026-02-09T09:02:38.998139Z" - } - }, + "metadata": {}, "cell_type": "code", "source": [ "@contextmanager\n", @@ -77,7 +63,7 @@ ], "id": "90f107a11ff0de7e", "outputs": [], - "execution_count": 3 + "execution_count": null }, { "metadata": {}, @@ -100,12 +86,7 @@ "execution_count": null }, { - "metadata": { - "ExecuteTime": { - "end_time": "2026-02-09T10:12:04.519634Z", - "start_time": "2026-02-09T10:12:00.680678Z" - } - }, + "metadata": {}, "cell_type": "code", "source": [ "def build_examples(test):\n", @@ -152,15 +133,10 @@ ], "id": "6770dbd57d475127", "outputs": [], - "execution_count": 14 + "execution_count": null }, { - "metadata": { - "ExecuteTime": { - "end_time": "2026-02-08T18:15:50.911578Z", - "start_time": "2026-02-08T18:15:50.683503Z" - } - }, + "metadata": {}, "cell_type": "code", "source": [ "def execute_results(test, ell, examples):\n", @@ -318,12 +294,7 @@ "execution_count": null }, { - "metadata": { - "ExecuteTime": { - "end_time": "2026-02-08T18:20:36.069640Z", - "start_time": "2026-02-08T18:20:35.873194Z" - } - }, + "metadata": {}, "cell_type": "code", "source": [ "def save_results(test, results):\n", @@ -333,7 +304,7 @@ ], "id": "74fbd4d33c288839", "outputs": [], - "execution_count": 10 + "execution_count": null }, { "metadata": {}, @@ -413,25 +384,28 @@ { "metadata": { "ExecuteTime": { - "end_time": "2026-02-09T10:12:58.413282Z", - "start_time": "2026-02-09T10:12:58.243121Z" + "end_time": "2026-02-09T10:56:29.360372Z", + "start_time": "2026-02-09T10:56:29.108940Z" } }, "cell_type": "code", "source": [ "test = \"Karney\"\n", "with open(f\"gha_results{test}.pkl\", \"rb\") as f:\n", - " results = pickle.load(f)" + " results = pickle.load(f)\n", + "\n", + "if test == \"Panou\":\n", + " del results[list(results.keys())[7]]" ], "id": "4c20a0579c0f7038", "outputs": [], - "execution_count": 3 + "execution_count": 47 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-02-09T10:12:59.354458Z", - "start_time": "2026-02-09T10:12:59.191379Z" + "end_time": "2026-02-09T13:06:21.830652Z", + "start_time": "2026-02-09T13:06:21.411031Z" } }, "cell_type": "code", @@ -467,13 +441,13 @@ ], "id": "24ee93abe040e707", "outputs": [], - "execution_count": 4 + "execution_count": 57 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-02-09T10:15:11.057178Z", - "start_time": "2026-02-09T10:15:10.842564Z" + "end_time": "2026-02-09T13:06:22.428549Z", + "start_time": "2026-02-09T13:06:22.088685Z" } }, "cell_type": "code", @@ -502,21 +476,42 @@ ], "id": "2086b5bcd8416e33", "outputs": [], - "execution_count": 12 - }, - { - "metadata": {}, - "cell_type": "code", - "source": "pass", - "id": "8d46dd972dfdc66f", - "outputs": [], - "execution_count": null + "execution_count": 58 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-02-09T10:13:44.482218Z", - "start_time": "2026-02-09T10:13:44.328266Z" + "end_time": "2026-02-09T13:14:57.595993Z", + "start_time": "2026-02-09T13:06:24.823191Z" + } + }, + "cell_type": "code", + "source": "pass", + "id": "8d46dd972dfdc66f", + "outputs": [ + { + "ename": "KeyboardInterrupt", + "evalue": "", + "output_type": "error", + "traceback": [ + "\u001B[31m---------------------------------------------------------------------------\u001B[39m", + "\u001B[31mKeyboardInterrupt\u001B[39m Traceback (most recent call last)", + "\u001B[36mCell\u001B[39m\u001B[36m \u001B[39m\u001B[32mIn[59]\u001B[39m\u001B[32m, line 1\u001B[39m\n\u001B[32m----> \u001B[39m\u001B[32m1\u001B[39m \u001B[38;5;28;01mpass\u001B[39;00m\n", + "\u001B[36mFile \u001B[39m\u001B[32mC:\\Program Files\\JetBrains\\PyCharm 2025.2.4\\plugins\\python-ce\\helpers\\pydev\\_pydevd_bundle\\pydevd_frame.py:755\u001B[39m, in \u001B[36mPyDBFrame.trace_dispatch\u001B[39m\u001B[34m(self, frame, event, arg)\u001B[39m\n\u001B[32m 753\u001B[39m \u001B[38;5;66;03m# if thread has a suspend flag, we suspend with a busy wait\u001B[39;00m\n\u001B[32m 754\u001B[39m \u001B[38;5;28;01mif\u001B[39;00m info.pydev_state == STATE_SUSPEND:\n\u001B[32m--> \u001B[39m\u001B[32m755\u001B[39m \u001B[38;5;28;43mself\u001B[39;49m\u001B[43m.\u001B[49m\u001B[43mdo_wait_suspend\u001B[49m\u001B[43m(\u001B[49m\u001B[43mthread\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43mframe\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43mevent\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43marg\u001B[49m\u001B[43m)\u001B[49m\n\u001B[32m 756\u001B[39m \u001B[38;5;66;03m# No need to reset frame.f_trace to keep the same trace function.\u001B[39;00m\n\u001B[32m 757\u001B[39m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28mself\u001B[39m.trace_dispatch\n", + "\u001B[36mFile \u001B[39m\u001B[32mC:\\Program Files\\JetBrains\\PyCharm 2025.2.4\\plugins\\python-ce\\helpers\\pydev\\_pydevd_bundle\\pydevd_frame.py:412\u001B[39m, in \u001B[36mPyDBFrame.do_wait_suspend\u001B[39m\u001B[34m(self, *args, **kwargs)\u001B[39m\n\u001B[32m 411\u001B[39m \u001B[38;5;28;01mdef\u001B[39;00m\u001B[38;5;250m \u001B[39m\u001B[34mdo_wait_suspend\u001B[39m(\u001B[38;5;28mself\u001B[39m, *args, **kwargs):\n\u001B[32m--> \u001B[39m\u001B[32m412\u001B[39m \u001B[38;5;28;43mself\u001B[39;49m\u001B[43m.\u001B[49m\u001B[43m_args\u001B[49m\u001B[43m[\u001B[49m\u001B[32;43m0\u001B[39;49m\u001B[43m]\u001B[49m\u001B[43m.\u001B[49m\u001B[43mdo_wait_suspend\u001B[49m\u001B[43m(\u001B[49m\u001B[43m*\u001B[49m\u001B[43margs\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43m*\u001B[49m\u001B[43m*\u001B[49m\u001B[43mkwargs\u001B[49m\u001B[43m)\u001B[49m\n", + "\u001B[36mFile \u001B[39m\u001B[32mC:\\Program Files\\JetBrains\\PyCharm 2025.2.4\\plugins\\python-ce\\helpers\\pydev\\pydevd.py:1196\u001B[39m, in \u001B[36mPyDB.do_wait_suspend\u001B[39m\u001B[34m(self, thread, frame, event, arg, send_suspend_message, is_unhandled_exception)\u001B[39m\n\u001B[32m 1193\u001B[39m from_this_thread.append(frame_id)\n\u001B[32m 1195\u001B[39m \u001B[38;5;28;01mwith\u001B[39;00m \u001B[38;5;28mself\u001B[39m._threads_suspended_single_notification.notify_thread_suspended(thread_id, stop_reason):\n\u001B[32m-> \u001B[39m\u001B[32m1196\u001B[39m \u001B[38;5;28;43mself\u001B[39;49m\u001B[43m.\u001B[49m\u001B[43m_do_wait_suspend\u001B[49m\u001B[43m(\u001B[49m\u001B[43mthread\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43mframe\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43mevent\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43marg\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43msuspend_type\u001B[49m\u001B[43m,\u001B[49m\u001B[43m \u001B[49m\u001B[43mfrom_this_thread\u001B[49m\u001B[43m)\u001B[49m\n", + "\u001B[36mFile \u001B[39m\u001B[32mC:\\Program Files\\JetBrains\\PyCharm 2025.2.4\\plugins\\python-ce\\helpers\\pydev\\pydevd.py:1211\u001B[39m, in \u001B[36mPyDB._do_wait_suspend\u001B[39m\u001B[34m(self, thread, frame, event, arg, suspend_type, from_this_thread)\u001B[39m\n\u001B[32m 1208\u001B[39m \u001B[38;5;28mself\u001B[39m._call_mpl_hook()\n\u001B[32m 1210\u001B[39m \u001B[38;5;28mself\u001B[39m.process_internal_commands()\n\u001B[32m-> \u001B[39m\u001B[32m1211\u001B[39m \u001B[43mtime\u001B[49m\u001B[43m.\u001B[49m\u001B[43msleep\u001B[49m\u001B[43m(\u001B[49m\u001B[32;43m0.01\u001B[39;49m\u001B[43m)\u001B[49m\n\u001B[32m 1213\u001B[39m \u001B[38;5;28mself\u001B[39m.cancel_async_evaluation(get_current_thread_id(thread), \u001B[38;5;28mstr\u001B[39m(\u001B[38;5;28mid\u001B[39m(frame)))\n\u001B[32m 1215\u001B[39m \u001B[38;5;66;03m# process any stepping instructions\u001B[39;00m\n", + "\u001B[31mKeyboardInterrupt\u001B[39m: " + ] + } + ], + "execution_count": 59 + }, + { + "metadata": { + "ExecuteTime": { + "end_time": "2026-02-09T10:56:32.604304Z", + "start_time": "2026-02-09T10:56:32.423267Z" } }, "cell_type": "code", @@ -555,13 +550,13 @@ ], "id": "567b66ef21126628", "outputs": [], - "execution_count": 9 + "execution_count": 49 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-02-09T10:13:51.135041Z", - "start_time": "2026-02-09T10:13:47.712516Z" + "end_time": "2026-02-09T13:04:46.869828Z", + "start_time": "2026-02-09T13:04:45.309895Z" } }, "cell_type": "code", @@ -632,7 +627,7 @@ " return fig\n", "\n", "figs = []\n", - "if test == \"Panou\" or test == \"Karney\":\n", + "if test == \"Karney\":\n", " for group_index in sorted(set(group_indices)):\n", " fig1 = build_max_table(\"GHA1\", f\"{test} - Gruppe {group_index} - GHA1\", group_index)\n", " fig2 = build_max_table(\"GHA2\", f\"{test} - Gruppe {group_index} - GHA2\", group_index)\n", @@ -654,54 +649,28 @@ ], "id": "eeb5a204cc4bbf7d", "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "5\n", - "5\n", - "5\n", - "5\n", - "5\n", - "5\n", - "5\n", - "5\n", - "5\n", - "5\n", - "5\n", - "5\n", - "1\n" - ] - }, { "name": "stderr", "output_type": "stream", "text": [ - "C:\\Users\\moell\\AppData\\Local\\Temp\\ipykernel_7832\\3781407476.py:6: RuntimeWarning:\n", + "C:\\Users\\moell\\AppData\\Local\\Temp\\ipykernel_7832\\1271482206.py:6: RuntimeWarning:\n", "\n", "All-NaN slice encountered\n", "\n", - "C:\\Users\\moell\\AppData\\Local\\Temp\\ipykernel_7832\\3781407476.py:6: RuntimeWarning:\n", + "C:\\Users\\moell\\AppData\\Local\\Temp\\ipykernel_7832\\1271482206.py:6: RuntimeWarning:\n", "\n", "All-NaN slice encountered\n", "\n", - "C:\\Users\\moell\\AppData\\Local\\Temp\\ipykernel_7832\\3781407476.py:6: RuntimeWarning:\n", + "C:\\Users\\moell\\AppData\\Local\\Temp\\ipykernel_7832\\1271482206.py:6: RuntimeWarning:\n", "\n", "All-NaN slice encountered\n", "\n", - "C:\\Users\\moell\\AppData\\Local\\Temp\\ipykernel_7832\\3781407476.py:6: RuntimeWarning:\n", + "C:\\Users\\moell\\AppData\\Local\\Temp\\ipykernel_7832\\1271482206.py:6: RuntimeWarning:\n", "\n", "All-NaN slice encountered\n", "\n" ] }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "1\n" - ] - }, { "data": { "application/vnd.plotly.v1+json": { @@ -14311,13 +14280,13 @@ } } ], - "execution_count": 10 + "execution_count": 55 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-02-09T09:19:29.235114Z", - "start_time": "2026-02-09T09:19:29.040806Z" + "end_time": "2026-02-09T10:54:47.989460Z", + "start_time": "2026-02-09T10:54:47.755581Z" } }, "cell_type": "code", @@ -14564,13 +14533,13 @@ ], "id": "12591c3b707da905", "outputs": [], - "execution_count": 31 + "execution_count": 45 }, { "metadata": { "ExecuteTime": { - "end_time": "2026-02-09T09:19:47.264504Z", - "start_time": "2026-02-09T09:19:47.022633Z" + "end_time": "2026-02-09T10:54:49.489625Z", + "start_time": "2026-02-09T10:54:49.265934Z" } }, "cell_type": "code", @@ -14642,7 +14611,7 @@ ] } ], - "execution_count": 33 + "execution_count": 46 } ], "metadata": {