Skip to content

Commit

Permalink
feat (push-pull): new notebook examples
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Oct 16, 2024
1 parent 6b863a1 commit 16ae744
Show file tree
Hide file tree
Showing 4 changed files with 610 additions and 8 deletions.
9 changes: 5 additions & 4 deletions notebooks/componentization/w10-intake-potatos-step03.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/1847d634-1f61-4f6d-8094-0dcbbb26ee60.uml to 1847d634-1f61-4f6d-8094-0dcbbb26ee60.svg\n"
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/271dba66-23c8-4462-9462-d585db386101.uml to 271dba66-23c8-4462-9462-d585db386101.svg\n"
]
},
{
Expand Down Expand Up @@ -68,6 +68,7 @@
" def __init__(self, file_path):\n",
" self.file_path = file_path\n",
"\n",
" # Interface DataFlow Required\n",
" def connect(self, component):\n",
" df = pd.read_csv(self.file_path)\n",
" component.update(df)"
Expand All @@ -83,7 +84,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/827bf1e9-1b16-481e-a9cb-923dbac5a5cc.uml to 827bf1e9-1b16-481e-a9cb-923dbac5a5cc.svg\n"
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/bf9dd629-2d59-47f1-ae41-9ead9dbb7a3d.uml to bf9dd629-2d59-47f1-ae41-9ead9dbb7a3d.svg\n"
]
},
{
Expand Down Expand Up @@ -155,7 +156,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/b8fb8c48-4a52-4420-b46f-04a115a37b0b.uml to b8fb8c48-4a52-4420-b46f-04a115a37b0b.svg\n"
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/ac28da10-f617-4b2d-a4a5-150bb3f8f375.uml to ac28da10-f617-4b2d-a4a5-150bb3f8f375.svg\n"
]
},
{
Expand Down Expand Up @@ -210,7 +211,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand Down
9 changes: 5 additions & 4 deletions notebooks/componentization/w10-intake-potatos-step04.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/49ff6eee-9656-46ad-a766-b40b614bdcae.uml to 49ff6eee-9656-46ad-a766-b40b614bdcae.svg\n"
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/5e8d6086-d42c-4240-a908-56d52b03d543.uml to 5e8d6086-d42c-4240-a908-56d52b03d543.svg\n"
]
},
{
Expand Down Expand Up @@ -90,6 +90,7 @@
" if self._connected is not None:\n",
" self._connected.update(self._data)\n",
"\n",
" # Interface DataFlow Required\n",
" def connect(self, component):\n",
" self._connected = component\n",
" if self._data is not None:\n",
Expand All @@ -106,7 +107,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/69a16a9c-f458-456f-b9b5-8ed43d2825f2.uml to 69a16a9c-f458-456f-b9b5-8ed43d2825f2.svg\n"
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/d99138a5-f6e2-4637-99ab-a7b702240406.uml to d99138a5-f6e2-4637-99ab-a7b702240406.svg\n"
]
},
{
Expand Down Expand Up @@ -216,7 +217,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/cd6aebd5-d0b8-4eff-8b74-f79cd181ba20.uml to cd6aebd5-d0b8-4eff-8b74-f79cd181ba20.svg\n"
"Writing output for /home/santanche/git/component2learn/notebooks/componentization/a291f216-79eb-4e70-89f4-b207258f1278.uml to a291f216-79eb-4e70-89f4-b207258f1278.svg\n"
]
},
{
Expand Down Expand Up @@ -278,7 +279,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand Down
301 changes: 301 additions & 0 deletions notebooks/componentization/w20-intake-potatos-push.ipynb

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions notebooks/componentization/w25-intake-potatos-pull.ipynb

Large diffs are not rendered by default.

0 comments on commit 16ae744

Please sign in to comment.