Skip to content

Commit

Permalink
Improve stability of tutorial notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
youngmit committed Feb 28, 2020
1 parent 98f09b9 commit 6733433
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion armi/tests/tutorials/data_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"source": [
"# you can only configure an app once\n",
"import armi\n",
"armi.configure(armi.apps.App())"
"if not armi.isConfigured():\n",
" armi.configure(armi.apps.App())"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion armi/tests/tutorials/param_sweep.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"source": [
"# you can only configure an app once\n",
"import armi\n",
"armi.configure(armi.apps.App());"
"if not armi.isConfigured():\n",
" armi.configure(armi.apps.App())"
]
},
{
Expand Down

0 comments on commit 6733433

Please sign in to comment.