Skip to content

Commit

Permalink
feat: format and cleanup notebooks (#76)
Browse files Browse the repository at this point in the history
* style: format

* wip: try using notebook renderer

* feat: add svg plot rendering to all

* feat: missed a spot

* feat: fix some notebooks

* feat: try png

* feat: fix sensor modeling

* feat: fix flux notebook

* feat: fix station keeping notebook

* feat: fix toerh station keeping notebook

* feat: fix qlaw examples

* feat: fix orbit computation

* feat: fix sensor projection
  • Loading branch information
vishwa2710 authored Dec 1, 2023
1 parent 41e78b7 commit af3597b
Show file tree
Hide file tree
Showing 21 changed files with 40,775 additions and 185,352 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ run-and-edit-jupyter: ## Run and edit jupyter notebooks
--volume="$(project_directory)/notebooks:/notebooks" \
--workdir=/notebooks \
$(jupyter_image) \
bash -c "start-notebook.py --ServerApp.token=''"
bash -c "pip install kaleido~=0.2; start-notebook.py --ServerApp.token=''"

.PHONY: run-and-edit-jupyter

Expand Down
5 changes: 2 additions & 3 deletions notebooks/Coordinate Conversion/ECEF to LLA.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"outputs": [],
"source": [
"from ostk.physics.coordinate.spherical import LLA\n",
"from ostk.physics import Environment\n",
"from ostk.physics.environment.objects.celestial_bodies import Earth"
"from ostk.physics import Environment"
]
},
{
Expand Down Expand Up @@ -117,7 +116,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
24 changes: 11 additions & 13 deletions notebooks/Coordinate Conversion/ECI to ECEF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"id": "4d7d9823-9667-4807-8a9c-852eafcd7312",
"metadata": {},
"outputs": [],
"source": [
"from ostk.physics.time import Scale\n",
"from ostk.physics.time import Instant\n",
"from ostk.physics.time import DateTime\n",
"from ostk.physics.coordinate import Position\n",
"from ostk.physics.coordinate import Velocity\n",
"from ostk.physics.coordinate import Frame"
]
},
Expand All @@ -41,7 +39,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"id": "54ab52ef-2713-4e89-8830-e108723d1258",
"metadata": {},
"outputs": [],
Expand All @@ -54,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"id": "64366c1c-ce5e-4d16-b2fb-36048f7fe6b3",
"metadata": {},
"outputs": [],
Expand All @@ -64,7 +62,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"id": "36c30b8f-d485-4698-8c94-0f361f83a72d",
"metadata": {},
"outputs": [],
Expand All @@ -74,7 +72,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"id": "5ffcffdb-b497-48ca-8b96-65f1893e3089",
"metadata": {},
"outputs": [],
Expand All @@ -84,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"id": "feee060b-9ff8-4f8f-8cb1-342be9c32bd6",
"metadata": {},
"outputs": [],
Expand All @@ -95,7 +93,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"id": "abe82107-cf7d-462c-80a5-eda7808f57c5",
"metadata": {},
"outputs": [],
Expand All @@ -106,7 +104,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"id": "f72e01c1-73fe-4676-98ae-3ac9b66750be",
"metadata": {},
"outputs": [
Expand All @@ -120,8 +118,8 @@
}
],
"source": [
"print(f'x_ECEF = {x_ECEF}')\n",
"print(f'v_ECEF = {v_ECEF}')"
"print(f\"x_ECEF = {x_ECEF}\")\n",
"print(f\"v_ECEF = {v_ECEF}\")"
]
},
{
Expand Down Expand Up @@ -149,7 +147,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
15 changes: 7 additions & 8 deletions notebooks/Coordinate Conversion/LLA to ECEF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 1,
"id": "4d7d9823-9667-4807-8a9c-852eafcd7312",
"metadata": {},
"outputs": [],
"source": [
"from ostk.physics.units import Length\n",
"from ostk.physics.units import Angle\n",
"from ostk.physics.coordinate.spherical import LLA\n",
"from ostk.physics import Environment\n",
"from ostk.physics.environment.objects.celestial_bodies import Earth"
"from ostk.physics import Environment"
]
},
{
Expand All @@ -42,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 2,
"id": "30fa82fa-5366-4988-a9c8-e39b34a6d7e2",
"metadata": {},
"outputs": [],
Expand All @@ -53,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 3,
"id": "54ab52ef-2713-4e89-8830-e108723d1258",
"metadata": {},
"outputs": [],
Expand All @@ -63,7 +62,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 4,
"id": "b76d0811-f5be-4b3d-becb-1162f35d005c",
"metadata": {},
"outputs": [],
Expand All @@ -73,7 +72,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 5,
"id": "290445ed-346a-47ca-8df1-311ffacc6783",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -114,7 +113,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit af3597b

Please sign in to comment.