Skip to content

Commit

Permalink
Small changes on notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
alinnman committed Jan 23, 2025
1 parent 2c1af5b commit 04a278d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
32 changes: 18 additions & 14 deletions colab/notebook_stat_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 13,
"metadata": {
"cellView": "form",
"id": "dhW9YrWiNTa9"
Expand Down Expand Up @@ -1833,7 +1833,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 14,
"metadata": {
"cellView": "form",
"id": "sSDESp0XZr25",
Expand Down Expand Up @@ -1891,7 +1891,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 15,
"metadata": {
"cellView": "form",
"id": "Bp_4_6eaNTbC"
Expand Down Expand Up @@ -1948,7 +1948,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 16,
"metadata": {
"cellView": "form",
"id": "nSz5eTY4NTbD"
Expand Down Expand Up @@ -2005,7 +2005,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 17,
"metadata": {
"cellView": "form",
"id": "i8gFDSW6xSMo"
Expand Down Expand Up @@ -2040,7 +2040,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 18,
"metadata": {
"cellView": "form",
"colab": {
Expand All @@ -2051,14 +2051,18 @@
},
"outputs": [
{
"ename": "TypeError",
"evalue": "SightCollection.get_intersections() missing 1 required positional argument: 'return_geodetic'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[12], line 15\u001b[0m\n\u001b[1;32m 13\u001b[0m collection \u001b[38;5;241m=\u001b[39m SightCollection (siteList)\n\u001b[1;32m 14\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m---> 15\u001b[0m intersections, _, _ \u001b[38;5;241m=\u001b[39m collection\u001b[38;5;241m.\u001b[39mget_intersections\\\n\u001b[1;32m 16\u001b[0m (estimated_position\u001b[38;5;241m=\u001b[39mdrpPosition, \\\n\u001b[1;32m 17\u001b[0m diagnostics\u001b[38;5;241m=\u001b[39mDIAGNOSTICS)\n\u001b[1;32m 18\u001b[0m \u001b[38;5;28mprint\u001b[39m (\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mThis is the coordinate of observer\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124ms location:\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[1;32m 19\u001b[0m \u001b[38;5;28mprint\u001b[39m (get_representation(intersections,\u001b[38;5;241m1\u001b[39m))\n",
"\u001b[0;31mTypeError\u001b[0m: SightCollection.get_intersections() missing 1 required positional argument: 'return_geodetic'"
"name": "stdout",
"output_type": "stream",
"text": [
"This is the coordinate of observer's location:\n",
"(Geocentric) (N 42°,2.2′;W 87°,43.0′)\n",
"\n",
"This is a link to a map showing the intersections of circles of equal altitude\n",
"You may need to Ctrl+Drag the mouse to pan the map\n",
"https://www.mapdevelopers.com/draw-circle-tool.php?circles=%5B%5B3895886%2C16.624097%2C-59.665%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B7855147%2C16.707391%2C-166.175833%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B6643005%2C38.986211%2C-6.120428%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%5D\n",
"\n",
"This is the Google Map position (enter it as an address/location in Google Maps)\n",
"(Geocentric) 42.0362,-87.7162\n"
]
}
],
Expand Down
18 changes: 9 additions & 9 deletions colab/vacation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 7,
"metadata": {
"cellView": "form",
"id": "dhW9YrWiNTa9"
Expand Down Expand Up @@ -1833,7 +1833,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 8,
"metadata": {
"cellView": "form",
"id": "sSDESp0XZr25"
Expand Down Expand Up @@ -1889,7 +1889,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 9,
"metadata": {
"cellView": "form",
"id": "Bp_4_6eaNTbC"
Expand Down Expand Up @@ -1945,7 +1945,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 10,
"metadata": {
"cellView": "form",
"id": "nSz5eTY4NTbD"
Expand Down Expand Up @@ -2001,7 +2001,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 11,
"metadata": {
"cellView": "form",
"id": "i8gFDSW6xSMo"
Expand Down Expand Up @@ -2036,7 +2036,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 12,
"metadata": {
"cellView": "form",
"colab": {
Expand All @@ -2051,14 +2051,14 @@
"output_type": "stream",
"text": [
"This is the coordinate of observer's location:\n",
"(N 57°,38.3′;E 18°,17.7′)\n",
"(Geocentric) (N 57°,59.8′;E 18°,21.0′)\n",
"\n",
"This is a link to a map showing the intersections of circles of equal altitude\n",
"You may need to Ctrl+Drag the mouse to pan the map\n",
"https://www.mapdevelopers.com/draw-circle-tool.php?circles=%5B%5B4857586%2C23.1922%2C55.6406%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B4532704%2C23.1807%2C-11.8587%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B6757269%2C23.174%2C-53.094%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%5D\n",
"https://www.mapdevelopers.com/draw-circle-tool.php?circles=%5B%5B4868807%2C23.329286%2C55.640583%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B4546083%2C23.317818%2C-11.85875%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%2C%5B6758075%2C23.311037%2C-53.094%2C%22%23AAAAAA%22%2C%22%23000000%22%2C0.4%5D%5D\n",
"\n",
"This is the Google Map position (enter it as an address/location in Google Maps)\n",
"57.6383,18.2942\n"
"(Geocentric) 57.9966,18.3503\n"
]
}
],
Expand Down

0 comments on commit 04a278d

Please sign in to comment.