From 1324ad8a12bd376495b2e1519cf09edd2a858830 Mon Sep 17 00:00:00 2001 From: "Marco A. Lopez-Sanchez" Date: Mon, 29 Jul 2024 16:34:50 +0200 Subject: [PATCH] Update example_coordinates.ipynb --- src/example_coordinates.ipynb | 39 +++++++++++++---------------------- 1 file changed, 14 insertions(+), 25 deletions(-) diff --git a/src/example_coordinates.ipynb b/src/example_coordinates.ipynb index 7fdfe8b..be026b9 100644 --- a/src/example_coordinates.ipynb +++ b/src/example_coordinates.ipynb @@ -13,19 +13,7 @@ "cell_type": "code", "execution_count": 1, "metadata": {}, - "outputs": [ - { - "ename": "SyntaxError", - "evalue": "invalid syntax (coordinates.py, line 167)", - "output_type": "error", - "traceback": [ - "Traceback \u001b[1;36m(most recent call last)\u001b[0m:\n", - "\u001b[0m File \u001b[0;32mc:\\Users\\Marco\\miniconda3\\envs\\main\\Lib\\site-packages\\IPython\\core\\interactiveshell.py:3577\u001b[0m in \u001b[0;35mrun_code\u001b[0m\n exec(code_obj, self.user_global_ns, self.user_ns)\u001b[0m\n", - "\u001b[1;36m Cell \u001b[1;32mIn[1], line 4\u001b[1;36m\n\u001b[1;33m import coordinates as c\u001b[1;36m\n", - "\u001b[1;36m File \u001b[1;32mc:\\Users\\Marco\\Documents\\GitHub\\PyRockWave\\src\\coordinates.py:167\u001b[1;36m\u001b[0m\n\u001b[1;33m pythonCopyimport numpy as np\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n" - ] - } - ], + "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", "\n", @@ -44,7 +32,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -53,7 +41,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -92,7 +80,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -136,7 +124,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -145,7 +133,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -160,6 +148,7 @@ } ], "source": [ + "# Use the default method: modified offset Fibonacci lattice algorithm\n", "azimuths, polar = c.equispaced_S2_grid(n=1000)\n", "\n", "# convert from spherical to 3d cartesian\n", @@ -175,17 +164,17 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ - "# An alternative method: qual-Area Partitioning method\n", + "# An alternative method: Equal-Area Partitioning method\n", "points = c.equispaced_S2_grid2(num_points=1000)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -217,15 +206,15 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Notebook tested in 2024-07-12 using:\n", - "Python 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:03:56) [MSC v.1929 64 bit (AMD64)]\n", + "Notebook tested in 2024-07-29 using:\n", + "Python 3.10.13 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:24:38) [MSC v.1916 64 bit (AMD64)]\n", "Matplotlib 3.8.4\n" ] } @@ -258,7 +247,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.4" + "version": "3.10.13" }, "orig_nbformat": 4 },