Skip to content

Commit f2996b7

Browse files
committed
added comment
1 parent b8bc5fa commit f2996b7

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

tests.py

+10-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import tempfile
44

55

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

1414

1515
def test():
16-
_exec_notebook('./example1/0-Workflow.ipynb')
17-
_exec_notebook('./example1/1-CreateDataset.ipynb')
18-
_exec_notebook('./example1/2-CalculateFeatures.ipynb')
19-
_exec_notebook('./example1/3-FitModel.ipynb')
20-
_exec_notebook('./example1/4-Predict.ipynb')
21-
_exec_notebook('./example2/0-Workflow.ipynb')
22-
_exec_notebook('./example2/1-SimulateTree.ipynb')
23-
_exec_notebook('./example2/2-SimulateSequences.ipynb')
16+
# these notebook must be run in order
17+
exec_notebook('./example1/0-Workflow.ipynb')
18+
exec_notebook('./example1/1-CreateDataset.ipynb')
19+
exec_notebook('./example1/2-CalculateFeatures.ipynb')
20+
exec_notebook('./example1/3-FitModel.ipynb')
21+
exec_notebook('./example1/4-Predict.ipynb')
22+
exec_notebook('./example2/0-Workflow.ipynb')
23+
exec_notebook('./example2/1-SimulateTree.ipynb')
24+
exec_notebook('./example2/2-SimulateSequences.ipynb')
2425

2526

2627
if __name__ == '__main__':

0 commit comments

Comments
 (0)