Skip to content

Commit 675bf4e

Browse files
committed
fix: added in-line comment to describe this change.
1 parent 7e604a4 commit 675bf4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/specification/causal_dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __init__(self, dot_path: str = None, **attr):
134134
super().__init__(**attr)
135135
if dot_path:
136136
with open(dot_path, 'r', encoding='utf-8') as file:
137-
dot_content = file.read().replace('\n', '')
137+
dot_content = file.read().replace('\n', '') # Remove any newlines before creating the pydot_graph.
138138
pydot_graph = pydot.graph_from_dot_data(dot_content)
139139
self.graph = nx.DiGraph(nx.drawing.nx_pydot.from_pydot(pydot_graph[0]))
140140
else:

0 commit comments

Comments
 (0)