Skip to content

Commit

Permalink
Rename variable to avoid overriding function argument (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxdna authored and jmschrei committed Sep 20, 2017
1 parent 5652aa4 commit f18ef2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pomegranate/BayesianNetwork.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ cdef class BayesianNetwork( GraphModel ):
break

if state_names is not None:
states = [State(node, name=name) for node, name in izip(nodes,state_names)]
states = [State(node, name=node_name) for node, node_name in izip(nodes,state_names)]
else:
states = [State(node, name=str(i)) for i, node in enumerate(nodes)]

Expand Down

0 comments on commit f18ef2c

Please sign in to comment.