Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 2 additions & 9 deletions content/WhatIsAnARG_workbook2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -676,15 +676,8 @@
"source": [
"import demesdraw\n",
"\n",
"try:\n",
" # This requires msprime >= 1.4, not yet on pyodide\n",
" cmd, parameters = msprime.provenance.parse_provenance(arg.provenance(0), arg)\n",
" assert cmd == \"sim_ancestry\" # just check we have the right (zeroth) provenance entry\n",
"except ValueError:\n",
" # Hack the workbook for older msprime versions\n",
" import pickle\n",
" with open(\"data/msprime_param_hack.pkl\", 'rb') as picklefile:\n",
" parameters = pickle.load(picklefile)\n",
"cmd, parameters = msprime.provenance.parse_provenance(arg.provenance(0), arg)\n",
"assert cmd == \"sim_ancestry\" # just check we have the right (zeroth) provenance entry\n",
"\n",
"msprime_demography_object = parameters[\"demography\"]\n",
"demesdraw.tubes(msprime_demography_object.to_demes(), log_time=False);"
Expand Down
Binary file removed content/data/msprime_param_hack.pkl
Binary file not shown.
Loading