We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf02e1 commit 7e604a4Copy full SHA for 7e604a4
causal_testing/specification/causal_dag.py
@@ -133,7 +133,7 @@ class CausalDAG(nx.DiGraph):
133
def __init__(self, dot_path: str = None, **attr):
134
super().__init__(**attr)
135
if dot_path:
136
- with open(dot_path, 'r') as file:
+ with open(dot_path, 'r', encoding='utf-8') as file:
137
dot_content = file.read().replace('\n', '')
138
pydot_graph = pydot.graph_from_dot_data(dot_content)
139
self.graph = nx.DiGraph(nx.drawing.nx_pydot.from_pydot(pydot_graph[0]))
0 commit comments