Skip to content

Commit

Permalink
Update example_coordinates.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoalopez committed Jul 29, 2024
1 parent dcc5754 commit 1324ad8
Showing 1 changed file with 14 additions and 25 deletions.
39 changes: 14 additions & 25 deletions src/example_coordinates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -44,7 +32,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -53,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -92,7 +80,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -136,7 +124,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -145,7 +133,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -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",
Expand All @@ -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": [
{
Expand Down Expand Up @@ -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"
]
}
Expand Down Expand Up @@ -258,7 +247,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
"version": "3.10.13"
},
"orig_nbformat": 4
},
Expand Down

0 comments on commit 1324ad8

Please sign in to comment.