Skip to content

Commit

Permalink
docs: write Result class step 1 to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Mar 22, 2021
1 parent e2e0a61 commit 8114d39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/usage/step1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Finally, we can write the {class}`~expertsystem.amplitude.helicity.HelicityModel` to disk via {mod}`pickle`:"
"Finally, we can write the {class}`~expertsystem.amplitude.helicity.HelicityModel` to disk via {mod}`pickle`, as well as store the {class}`~expertsystem.reaction.Result` as JSON:"
]
},
{
Expand All @@ -164,6 +164,7 @@
"source": [
"import pickle\n",
"\n",
"es.io.write(result, \"transitions.json\")\n",
"with open(\"helicity_model.pickle\", \"wb\") as stream:\n",
" pickle.dump(model, stream)"
]
Expand Down

0 comments on commit 8114d39

Please sign in to comment.