Skip to content

Commit

Permalink
Change default value of layout in view_model of CausalModel
Browse files Browse the repository at this point in the history
Changing the value from "dot" to None. The current default value requires the dot extension to be installed. However, if it is not installed, an error is raised. By default, this should not happen since it is an optional dependency.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
  • Loading branch information
bloebp committed Oct 9, 2023
1 parent 7eb4a0c commit 70185c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dowhy/causal_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def refute_estimate(self, estimand, estimate, method_name=None, show_progress_ba
res = refuter.refute_estimate(show_progress_bar)
return res

def view_model(self, layout="dot", size=(8, 6), file_name="causal_model"):
def view_model(self, layout=None, size=(8, 6), file_name="causal_model"):
"""View the causal DAG.
:param layout: string specifying the layout of the graph.
Expand Down

0 comments on commit 70185c7

Please sign in to comment.