Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions jupyter_notebooks/createModel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -501,17 +501,21 @@
"outputs": [],
"source": [
"# load model and convert to SBML\n",
"if loadFile(\"SPARCED.txt\") == 1:\n",
" print(\"Success loading antimony file\")\n",
"else:\n",
"try:\n",
" assert not loadFile(\"SPARCED.txt\") == -1\n",
"except:\n",
" print(\"Failed to load antimony file\")\n",
" exit(1)\n",
"\n",
"if writeSBMLFile(\"SPARCED.xml\",\"SPARCED\") == 1:\n",
" print(\"Success converting antimony to SBML\")\n",
"else:\n",
" print(\"Success loading antimony file\")\n",
"\n",
"try:\n",
" assert not writeSBMLFile(\"SPARCED.xml\",\"SPARCED\") == 0",
"except:\n",
" print(\"Failure converting antimony to SBML\")\n",
" exit(1)"
" exit(1)",
"else:\n",
" print(\"Success converting antimony to SBML\")\n"
]
},
{
Expand Down