From b438ad7e888eee657fb75c353aa4257c6d599905 Mon Sep 17 00:00:00 2001 From: Linus Heck Date: Thu, 25 Jul 2024 17:01:17 +0200 Subject: [PATCH] Fix notebook API --- docs/getting_started/prism.ipynb | 481 ++----------------------------- 1 file changed, 24 insertions(+), 457 deletions(-) diff --git a/docs/getting_started/prism.ipynb b/docs/getting_started/prism.ipynb index 848800e..ec1a66c 100644 --- a/docs/getting_started/prism.ipynb +++ b/docs/getting_started/prism.ipynb @@ -10,7 +10,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 12, "id": "2552891a-8d96-4c77-aa97-0a1ddf5bc02b", "metadata": {}, "outputs": [], @@ -21,17 +21,17 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 13, "id": "a00a5906-af87-4fb8-8f5f-ad5690129d33", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 2, + "execution_count": 13, "metadata": {}, "output_type": "execute_result" } @@ -108,7 +108,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 14, "id": "049cb9f5-2e69-4092-982f-be446aee0012", "metadata": {}, "outputs": [], @@ -119,7 +119,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 15, "id": "eb11837e-5c59-42d3-97ed-cedb76eca63c", "metadata": {}, "outputs": [ @@ -129,18 +129,18 @@ "text": [ "-------------------------------------------------------------- \n", "Model type: \tDTMC (sparse)\n", - "States: \t448\n", - "Transitions: \t630\n", + "States: \t178\n", + "Transitions: \t243\n", "Reward Models: (default)\n", "State Labels: \t8 labels\n", " * deadlock -> 0 item(s)\n", " * init -> 1 item(s)\n", - " * whichx -> 104 item(s)\n", + " * whichx -> 42 item(s)\n", " * target -> 1 item(s)\n", - " * selection -> 98 item(s)\n", - " * nextnand -> 102 item(s)\n", - " * gate -> 140 item(s)\n", - " * end -> 4 item(s)\n", + " * selection -> 39 item(s)\n", + " * nextnand -> 42 item(s)\n", + " * gate -> 52 item(s)\n", + " * end -> 3 item(s)\n", "Choice Labels: \tnone\n", "-------------------------------------------------------------- \n", "\n" @@ -153,457 +153,24 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 16, "id": "4b51450e", "metadata": {}, "outputs": [ { - "data": { - "text/html": [ - "\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/plain": [ - "" - ] - }, - "execution_count": 5, - "metadata": {}, - "output_type": "execute_result" + "ename": "AttributeError", + "evalue": "module 'stormvogel.map' has no attribute 'stormpy_to_stormvogel'", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[0;32mIn[16], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m visualization\u001b[38;5;241m.\u001b[39mshow(\u001b[38;5;28;43mmap\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mstormpy_to_stormvogel\u001b[49m(nand_model))\n", + "\u001b[0;31mAttributeError\u001b[0m: module 'stormvogel.map' has no attribute 'stormpy_to_stormvogel'" + ] } ], "source": [ - "visualization.show(map.stormpy_to_stormvogel_dtmc(nand_model))" + "visualization.show(map.stormpy_to_stormvogel(nand_model))" ] } ],