Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pwrose committed Oct 8, 2018
1 parent b8bc5fa commit f2996b7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import tempfile


def _exec_notebook(path):
def exec_notebook(path):
with tempfile.NamedTemporaryFile(suffix=".ipynb") as fout:
print(fout.name)
args = ["jupyter", "nbconvert", "--to", "notebook", "--execute",
Expand All @@ -13,14 +13,15 @@ def _exec_notebook(path):


def test():
_exec_notebook('./example1/0-Workflow.ipynb')
_exec_notebook('./example1/1-CreateDataset.ipynb')
_exec_notebook('./example1/2-CalculateFeatures.ipynb')
_exec_notebook('./example1/3-FitModel.ipynb')
_exec_notebook('./example1/4-Predict.ipynb')
_exec_notebook('./example2/0-Workflow.ipynb')
_exec_notebook('./example2/1-SimulateTree.ipynb')
_exec_notebook('./example2/2-SimulateSequences.ipynb')
# these notebook must be run in order
exec_notebook('./example1/0-Workflow.ipynb')
exec_notebook('./example1/1-CreateDataset.ipynb')
exec_notebook('./example1/2-CalculateFeatures.ipynb')
exec_notebook('./example1/3-FitModel.ipynb')
exec_notebook('./example1/4-Predict.ipynb')
exec_notebook('./example2/0-Workflow.ipynb')
exec_notebook('./example2/1-SimulateTree.ipynb')
exec_notebook('./example2/2-SimulateSequences.ipynb')


if __name__ == '__main__':
Expand Down

0 comments on commit f2996b7

Please sign in to comment.