Skip to content

Commit

Permalink
Strip more output
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Mar 1, 2023
1 parent 6ab5e69 commit d4bb91a
Showing 1 changed file with 14 additions and 28 deletions.
42 changes: 14 additions & 28 deletions examples/example2/example2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,10 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "cc398816",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Authorization required, but no authorization protocol specified\n",
"Authorization required, but no authorization protocol specified\n"
]
}
],
"outputs": [],
"source": [
"import os\n",
"\n",
Expand All @@ -56,7 +47,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "4f4023cf",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -85,7 +76,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "09079b17",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -136,23 +127,10 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "fe56e162",
"metadata": {},
"outputs": [
{
"ename": "AttributeError",
"evalue": "module 'stubs.common' has no attribute 'sbmodel_from_locals'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[4], line 4\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[39mfor\u001b[39;00m i \u001b[39min\u001b[39;00m \u001b[39mrange\u001b[39m(\u001b[39m10\u001b[39m):\n\u001b[1;32m 3\u001b[0m curRadius \u001b[39m=\u001b[39m radiusVec[i]\n\u001b[0;32m----> 4\u001b[0m pc, sc, cc, rc \u001b[39m=\u001b[39m make_model(curRadius)\n\u001b[1;32m 6\u001b[0m \u001b[39m# =============================================================================================\u001b[39;00m\n\u001b[1;32m 7\u001b[0m \u001b[39m# Create/load in mesh\u001b[39;00m\n\u001b[1;32m 8\u001b[0m \u001b[39m# =============================================================================================\u001b[39;00m\n\u001b[1;32m 9\u001b[0m \u001b[39m# Base mesh\u001b[39;00m\n\u001b[1;32m 10\u001b[0m domain, facet_markers, cell_markers \u001b[39m=\u001b[39m common\u001b[39m.\u001b[39mDemoSpheresMesh(curRadius, \u001b[39m0\u001b[39m) \u001b[39m#0 in second argument corresponds to no ER\u001b[39;00m\n",
"Cell \u001b[0;32mIn[3], line 33\u001b[0m, in \u001b[0;36mmake_model\u001b[0;34m(curRadius)\u001b[0m\n\u001b[1;32m 27\u001b[0m r2 \u001b[39m=\u001b[39m Reaction(\u001b[39m\"\u001b[39m\u001b[39mr2\u001b[39m\u001b[39m\"\u001b[39m, [\u001b[39m\"\u001b[39m\u001b[39mAphos\u001b[39m\u001b[39m\"\u001b[39m], [], param_map\u001b[39m=\u001b[39m{\u001b[39m\"\u001b[39m\u001b[39mkon\u001b[39m\u001b[39m\"\u001b[39m: \u001b[39m\"\u001b[39m\u001b[39mkp\u001b[39m\u001b[39m\"\u001b[39m},\n\u001b[1;32m 28\u001b[0m eqn_f_str\u001b[39m=\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mkon*Aphos\u001b[39m\u001b[39m\"\u001b[39m, species_map\u001b[39m=\u001b[39m{\u001b[39m\"\u001b[39m\u001b[39mAphos\u001b[39m\u001b[39m\"\u001b[39m: \u001b[39m\"\u001b[39m\u001b[39mAphos\u001b[39m\u001b[39m\"\u001b[39m})\n\u001b[1;32m 30\u001b[0m \u001b[39m# =============================================================================================\u001b[39;00m\n\u001b[1;32m 31\u001b[0m \u001b[39m# Gather all parameters, species, compartments and reactions\u001b[39;00m\n\u001b[1;32m 32\u001b[0m \u001b[39m# =============================================================================================\u001b[39;00m\n\u001b[0;32m---> 33\u001b[0m \u001b[39mreturn\u001b[39;00m common\u001b[39m.\u001b[39;49msbmodel_from_locals(\u001b[39mlocals\u001b[39m()\u001b[39m.\u001b[39mvalues())\n",
"\u001b[0;31mAttributeError\u001b[0m: module 'stubs.common' has no attribute 'sbmodel_from_locals'"
]
}
],
"outputs": [],
"source": [
"radiusVec = np.logspace(0,1,num=10) # currently testing 10 radius values\n",
"for i in range(10):\n",
Expand Down Expand Up @@ -209,6 +187,14 @@
" if modelCur.t >= modelCur.final_t:\n",
" break"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4fe15da8",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit d4bb91a

Please sign in to comment.