Skip to content

Commit f028ffc

Browse files
committed
new notebook version
1 parent dc553e6 commit f028ffc

File tree

1 file changed

+11
-33
lines changed

1 file changed

+11
-33
lines changed

zurbuchen.ipynb

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{
4343
"data": {
4444
"application/vnd.jupyter.widget-view+json": {
45-
"model_id": "5db73204533c464b820862d0f0873b28",
45+
"model_id": "e748ca40fd4a4e3ab81a118e774c7a67",
4646
"version_major": 2,
4747
"version_minor": 0
4848
},
@@ -56,7 +56,7 @@
5656
{
5757
"data": {
5858
"application/vnd.jupyter.widget-view+json": {
59-
"model_id": "dd9eca80834641148777c27c8bce53fa",
59+
"model_id": "25a810b2f6044a67b36f82d9bd446400",
6060
"version_major": 2,
6161
"version_minor": 0
6262
},
@@ -70,7 +70,7 @@
7070
{
7171
"data": {
7272
"application/vnd.jupyter.widget-view+json": {
73-
"model_id": "17dc1322485547c595226efe0667801d",
73+
"model_id": "ad61b358c7b44d848d04e1a50d860131",
7474
"version_major": 2,
7575
"version_minor": 0
7676
},
@@ -84,7 +84,7 @@
8484
{
8585
"data": {
8686
"application/vnd.jupyter.widget-view+json": {
87-
"model_id": "6b56577fe14940d89ae76e7892fba43d",
87+
"model_id": "d5c13503a2b146beac9de3649c467119",
8888
"version_major": 2,
8989
"version_minor": 0
9090
},
@@ -112,45 +112,23 @@
112112
},
113113
{
114114
"cell_type": "code",
115-
"execution_count": 4,
116-
"metadata": {},
117-
"outputs": [
118-
{
119-
"data": {
120-
"text/plain": [
121-
"[[VariableRequirement(symbol='\\\\mathrm{NA}', name='Numerical Aperture', value=1.0, units='', tolerance=0.0),\n",
122-
" VariableRequirement(symbol='n_{k}', name='Refractive index of the medium', value=2.0, units='', tolerance=0.0),\n",
123-
" VariableRequirement(symbol='u_{k}', name='Small-angle approximation for \\\\sin U_{k}', value=1.0, units='', tolerance=0.0)]]"
124-
]
125-
},
126-
"execution_count": 4,
127-
"metadata": {},
128-
"output_type": "execute_result"
129-
}
130-
],
131-
"source": [
132-
"user_choice"
133-
]
134-
},
135-
{
136-
"cell_type": "code",
137-
"execution_count": null,
115+
"execution_count": 1,
138116
"metadata": {},
139117
"outputs": [
140118
{
141-
"ename": "TypeError",
142-
"evalue": "EquationClient.validate() takes 1 positional argument but 2 were given",
119+
"ename": "NameError",
120+
"evalue": "name 'axtract_helper' is not defined",
143121
"output_type": "error",
144122
"traceback": [
145123
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
146-
"\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)",
147-
"Cell \u001b[0;32mIn[5], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43max_client\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mdocument\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mequation\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mvalidate\u001b[49m\u001b[43m(\u001b[49m\u001b[43muser_choice\u001b[49m\u001b[43m)\u001b[49m\n",
148-
"\u001b[0;31mTypeError\u001b[0m: EquationClient.validate() takes 1 positional argument but 2 were given"
124+
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
125+
"Cell \u001b[0;32mIn[1], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[43maxtract_helper\u001b[49m\u001b[38;5;241m.\u001b[39mvalidate_equations(user_choice[\u001b[38;5;241m0\u001b[39m], client_db)\n",
126+
"\u001b[0;31mNameError\u001b[0m: name 'axtract_helper' is not defined"
149127
]
150128
}
151129
],
152130
"source": [
153-
"ax_client.document.equation.validate(user_choice, client_db)"
131+
"response = axtract_helper.validate_equations(user_choice[0], client_db)"
154132
]
155133
},
156134
{

0 commit comments

Comments
 (0)