From f602515e51bd7783e0db04a4555844804241d38a Mon Sep 17 00:00:00 2001 From: Jacki Buros Novik Date: Tue, 26 Sep 2017 18:50:15 -0400 Subject: [PATCH 1/2] Update run_execute_ipynb.ml Try to fix int-related error --- model-single-origin-samples/biokepi/run_execute_ipynb.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-single-origin-samples/biokepi/run_execute_ipynb.ml b/model-single-origin-samples/biokepi/run_execute_ipynb.ml index c9643f9..cf80f58 100644 --- a/model-single-origin-samples/biokepi/run_execute_ipynb.ml +++ b/model-single-origin-samples/biokepi/run_execute_ipynb.ml @@ -76,7 +76,7 @@ let my_notebook = let timeout = let doc="The maximum time (in seconds) each notebook cell is allowed to run. If the execution takes longer an exception will be raised. Can set to -1 for no maximum timeout." in - Arg.(value & opt int -1 & info ["t"; "timeout"] ~docv:"TIMEOUT_SECS" ~doc) + Arg.(value & opt int ~-1 & info ["t"; "timeout"] ~docv:"TIMEOUT_SECS" ~doc) let cmd = let doc = "Execute jupyter notebook. Saves to {mynotebook}.nbconvert.ipynb" in From b8537ba1122eb66af8e3acd50ab4dba0259b002b Mon Sep 17 00:00:00 2001 From: Jacki Buros Novik Date: Wed, 27 Sep 2017 09:45:41 -0400 Subject: [PATCH 2/2] Update run_execute_ipynb.ml per ocaml convention --- model-single-origin-samples/biokepi/run_execute_ipynb.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-single-origin-samples/biokepi/run_execute_ipynb.ml b/model-single-origin-samples/biokepi/run_execute_ipynb.ml index cf80f58..46838f0 100644 --- a/model-single-origin-samples/biokepi/run_execute_ipynb.ml +++ b/model-single-origin-samples/biokepi/run_execute_ipynb.ml @@ -76,7 +76,7 @@ let my_notebook = let timeout = let doc="The maximum time (in seconds) each notebook cell is allowed to run. If the execution takes longer an exception will be raised. Can set to -1 for no maximum timeout." in - Arg.(value & opt int ~-1 & info ["t"; "timeout"] ~docv:"TIMEOUT_SECS" ~doc) + Arg.(value & opt int (-1) & info ["t"; "timeout"] ~docv:"TIMEOUT_SECS" ~doc) let cmd = let doc = "Execute jupyter notebook. Saves to {mynotebook}.nbconvert.ipynb" in