Skip to content

Commit 7a59339

Browse files
committed
feat: export plot_density in the public API
1 parent d485969 commit 7a59339

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

pathmc/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from pathmc.interpret import InterpretResult, datagrid # noqa: E402
4141
from pathmc._model import PathModel, model, simulate # noqa: E402
4242
from pathmc.adjustment import AdjustmentModel # noqa: E402
43+
from pathmc.plotting import plot_density # noqa: E402
4344
from pathmc.refute import PlaceboRefutationResult # noqa: E402
4445
from pathmc.sensitivity import SensitivityResult # noqa: E402
4546
from pathmc.simulate import DoResult, EstimandResult # noqa: E402
@@ -70,6 +71,7 @@
7071
"dag_to_spec",
7172
"datagrid",
7273
"model",
74+
"plot_density",
7375
"register_transform",
7476
"same_markov_equivalence_class",
7577
"simulate",

tests/test_public_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def test_top_level_public_api_is_explicit() -> None:
4242
"dag_to_spec",
4343
"datagrid",
4444
"model",
45+
"plot_density",
4546
"register_transform",
4647
"same_markov_equivalence_class",
4748
"simulate",
@@ -64,6 +65,7 @@ def test_public_submodule_exports_are_intentional() -> None:
6465
"pathmc.introspect": [],
6566
"pathmc.panel": ["PanelInfo"],
6667
"pathmc.parse": [],
68+
"pathmc.plotting": ["plot_density"],
6769
"pathmc.priors": [],
6870
"pathmc.refute": ["PlaceboRefutationResult", "refute_placebo"],
6971
"pathmc.residuals": [],

0 commit comments

Comments
 (0)