Skip to content

Commit

Permalink
Change examples to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonCN committed Oct 18, 2024
1 parent f67ba27 commit b0e84e8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand Down
4 changes: 3 additions & 1 deletion examples/Activation and Monitoring.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"import time # Sleep\n",
"import math # Math operations\n",
"\n",
Expand Down
42 changes: 21 additions & 21 deletions examples/Implementing a Architecture.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -113,7 +113,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -132,7 +132,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -191,7 +191,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -224,7 +224,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -240,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -284,7 +284,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -307,7 +307,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -326,7 +326,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -350,7 +350,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 10,
"metadata": {
"tags": [
"equation1"
Expand All @@ -363,7 +363,7 @@
"[nan, nan]"
]
},
"execution_count": 23,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -388,7 +388,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 11,
"metadata": {
"tags": [
"equation2"
Expand All @@ -401,15 +401,15 @@
"[0.0, 0.0]"
]
},
"execution_count": 24,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a_mo.set_info(1)\n",
"\n",
"time.sleep(0.020)\n",
"time.sleep(0.1)\n",
"\n",
"result_mo.get_info()"
]
Expand All @@ -423,7 +423,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 12,
"metadata": {
"tags": [
"equation3"
Expand All @@ -436,7 +436,7 @@
"[-0.0, 2.0]"
]
},
"execution_count": 25,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -446,7 +446,7 @@
"b_mo.set_info(8)\n",
"c_mo.set_info(0)\n",
"\n",
"time.sleep(0.020)\n",
"time.sleep(0.1)\n",
"\n",
"result_mo.get_info()"
]
Expand All @@ -460,7 +460,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 13,
"metadata": {
"tags": [
"equation4"
Expand All @@ -473,7 +473,7 @@
"[3.0, 3.0]"
]
},
"execution_count": 26,
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -483,7 +483,7 @@
"b_mo.set_info(-6)\n",
"c_mo.set_info(9)\n",
"\n",
"time.sleep(0.020)\n",
"time.sleep(0.1)\n",
"\n",
"result_mo.get_info()"
]
Expand All @@ -497,7 +497,7 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit b0e84e8

Please sign in to comment.