From 663d23d935612744c7fe50e36022c0c50e2838f0 Mon Sep 17 00:00:00 2001 From: Ryan O'Dea <70209371+ryan-odea@users.noreply.github.com> Date: Wed, 10 Dec 2025 14:00:04 +0100 Subject: [PATCH 1/3] add a note about optional dependencies for data dumping --- docs/vignettes/more_advanced_models.md | 8 ++++++++ pyproject.toml | 13 +++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/vignettes/more_advanced_models.md b/docs/vignettes/more_advanced_models.md index f636a7b..76defed 100644 --- a/docs/vignettes/more_advanced_models.md +++ b/docs/vignettes/more_advanced_models.md @@ -63,6 +63,14 @@ my_analysis.bootstrap() Now that the underlying bootstrap structure has been in place, we can simply continue as we would in simpler models- fit, survival, plot, collect, and dump. +You can recover all results through the collection, and interact with them as you would normally in Python; however, to dump to md or pdf you may require the optional depedencies which interact with these file formats. + +These can be easily installed through the `output` optional dependencies with pySEQTarget. + +```shell +pip install pySEQTarget[output] +``` + ```python my_analysis.fit() my_analysis.survival() diff --git a/pyproject.toml b/pyproject.toml index 0efb45c..24428a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,13 @@ dependencies = [ "lifelines" ] +[project.optional-dependencies] +output = [ + "markdown", + "weasyprint", + "tabulate" +] + [project.urls] Homepage = "https://github.com/CausalInference/pySEQTarget" Repository = "https://github.com/CausalInference/pySEQTarget" @@ -65,12 +72,6 @@ dev = [ "sphinx-autodoc-typehints", ] -output = [ - "markdown", - "weasyprint", - "tabulate" -] - [tool.setuptools.packages.find] where = ["."] include = ["pySEQTarget*"] From e7d4a32fd7bbda585250f1099bcb749fed2cc2ef Mon Sep 17 00:00:00 2001 From: Ryan O'Dea <70209371+ryan-odea@users.noreply.github.com> Date: Wed, 10 Dec 2025 14:00:47 +0100 Subject: [PATCH 2/3] Update more_advanced_models.md --- docs/vignettes/more_advanced_models.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/vignettes/more_advanced_models.md b/docs/vignettes/more_advanced_models.md index 76defed..f526304 100644 --- a/docs/vignettes/more_advanced_models.md +++ b/docs/vignettes/more_advanced_models.md @@ -77,6 +77,7 @@ my_analysis.survival() my_analysis.plot() my_output = my_analysis.collect() +# Requires tabulate installation my_output.to_md() ``` From 0da9a5dd6a1bdd9a125cf8c88928b71c0c1b6fe9 Mon Sep 17 00:00:00 2001 From: Ryan O'Dea <70209371+ryan-odea@users.noreply.github.com> Date: Wed, 10 Dec 2025 14:01:06 +0100 Subject: [PATCH 3/3] bump minor version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 24428a6..fa22221 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pySEQTarget" -version = "0.10.1" +version = "0.10.2" description = "Sequentially Nested Target Trial Emulation" readme = "README.md" license = {text = "MIT"}