{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "4614de4b", "metadata": {}, "outputs": [], "source": [ "import fp" ] }, { "cell_type": "code", "execution_count": 2, "id": "b72dbcbf", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "ici\n", "get f\n" ] }, { "ename": "RuntimeError", "evalue": "Invalid step : \u001b[35mf\u001b[0md", "output_type": "error", "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mRuntimeError\u001b[0m Traceback (most recent call last)", "Input \u001b[0;32mIn [2]\u001b[0m, in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mfp\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mPolygon\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mfd\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n", "File \u001b[0;32m~/Seafile/Recherche/self_avoiding_polygon/new/sage/polygon.pxi:13\u001b[0m, in \u001b[0;36mfp.Polygon.__cinit__\u001b[0;34m()\u001b[0m\n\u001b[1;32m 11\u001b[0m print(\"ici\")\n\u001b[1;32m 12\u001b[0m # cdef string cpp_str = py_unicode_string.encode(str)\n\u001b[0;32m---> 13\u001b[0m self.cpp=cpp_Polygon(str.encode('utf-8'))\n\u001b[1;32m 14\u001b[0m \n\u001b[1;32m 15\u001b[0m def size(self):\n", "\u001b[0;31mRuntimeError\u001b[0m: Invalid step : \u001b[35mf\u001b[0md" ] } ], "source": [ "fp.Polygon(\"fd\")" ] }, { "cell_type": "code", "execution_count": null, "id": "37d2e2fd", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "SageMath 9.5", "language": "sage", "name": "sagemath" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.4" } }, "nbformat": 4, "nbformat_minor": 5 }