Skip to content

Commit 44d946f

Browse files
quick fix for the slow test (#4039)
Co-authored-by: Eric G. Kratz <kratman@users.noreply.github.com>
1 parent 4189099 commit 44d946f

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

docs/source/examples/notebooks/models/loss_of_active_materials.ipynb

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
" model,\n",
6464
" experiment=experiment,\n",
6565
" parameter_values=param,\n",
66+
" discretisation_kwargs={\"remove_independent_variables_from_rhs\": True},\n",
6667
")\n",
6768
"solution = sim.solve(calc_esoh=False)"
6869
]
@@ -82,7 +83,7 @@
8283
{
8384
"data": {
8485
"application/vnd.jupyter.widget-view+json": {
85-
"model_id": "d3d8dcb00eb7421a83a4655bfd8e1245",
86+
"model_id": "6b19474c3912495eb75217e009760637",
8687
"version_major": 2,
8788
"version_minor": 0
8889
},
@@ -96,7 +97,7 @@
9697
{
9798
"data": {
9899
"text/plain": [
99-
"<pybamm.plotting.quick_plot.QuickPlot at 0x169320050>"
100+
"<pybamm.plotting.quick_plot.QuickPlot at 0x152567510>"
100101
]
101102
},
102103
"execution_count": 2,
@@ -152,7 +153,7 @@
152153
{
153154
"data": {
154155
"application/vnd.jupyter.widget-view+json": {
155-
"model_id": "6e6d0630770b475893301455ac4910c7",
156+
"model_id": "789a681c8c574bb8b3d3016a844dd9a2",
156157
"version_major": 2,
157158
"version_minor": 0
158159
},
@@ -166,7 +167,7 @@
166167
{
167168
"data": {
168169
"text/plain": [
169-
"<pybamm.plotting.quick_plot.QuickPlot at 0x175c86c10>"
170+
"<pybamm.plotting.quick_plot.QuickPlot at 0x163635410>"
170171
]
171172
},
172173
"execution_count": 3,
@@ -186,6 +187,7 @@
186187
" model,\n",
187188
" experiment=experiment,\n",
188189
" parameter_values=param,\n",
190+
" discretisation_kwargs={\"remove_independent_variables_from_rhs\": True},\n",
189191
" )\n",
190192
" solution = sim.solve(calc_esoh=False)\n",
191193
" solutions.append(solution)\n",
@@ -223,12 +225,12 @@
223225
{
224226
"data": {
225227
"application/vnd.jupyter.widget-view+json": {
226-
"model_id": "979c0f154595488da4fab0bd7cd66565",
228+
"model_id": "ad36439975754b29bbbef1bd94379408",
227229
"version_major": 2,
228230
"version_minor": 0
229231
},
230232
"text/plain": [
231-
"interactive(children=(FloatSlider(value=0.0, description='t', max=1.8531299069255607, step=0.01853129906925560"
233+
"interactive(children=(FloatSlider(value=0.0, description='t', max=1.8531298311682403, step=0.01853129831168240"
232234
]
233235
},
234236
"metadata": {},
@@ -237,7 +239,7 @@
237239
{
238240
"data": {
239241
"text/plain": [
240-
"<pybamm.plotting.quick_plot.QuickPlot at 0x2846e3b90>"
242+
"<pybamm.plotting.quick_plot.QuickPlot at 0x164f1f810>"
241243
]
242244
},
243245
"execution_count": 4,
@@ -298,12 +300,12 @@
298300
{
299301
"data": {
300302
"application/vnd.jupyter.widget-view+json": {
301-
"model_id": "42f77d86732043a795b8c3264fd755bc",
303+
"model_id": "91ea043e10d342049929095e48e98c5e",
302304
"version_major": 2,
303305
"version_minor": 0
304306
},
305307
"text/plain": [
306-
"interactive(children=(FloatSlider(value=0.0, description='t', max=1.8506642114311478, step=0.01850664211431147"
308+
"interactive(children=(FloatSlider(value=0.0, description='t', max=1.8506629989989005, step=0.01850662998998900"
307309
]
308310
},
309311
"metadata": {},
@@ -312,7 +314,7 @@
312314
{
313315
"data": {
314316
"text/plain": [
315-
"<pybamm.plotting.quick_plot.QuickPlot at 0x2852402d0>"
317+
"<pybamm.plotting.quick_plot.QuickPlot at 0x29d0de550>"
316318
]
317319
},
318320
"execution_count": 5,
@@ -415,7 +417,7 @@
415417
"name": "python",
416418
"nbconvert_exporter": "python",
417419
"pygments_lexer": "ipython3",
418-
"version": "3.8.10"
420+
"version": "3.11.8"
419421
},
420422
"toc": {
421423
"base_numbering": 1,

0 commit comments

Comments
 (0)