Skip to content

Commit

Permalink
Update method visualize()
Browse files Browse the repository at this point in the history
Add-on for Python 3 compatibility. In Python 3, the range() method returns a range data type that, for example, does not have a reverse () method.
  • Loading branch information
kirlf committed Feb 12, 2019
1 parent 68c096a commit 84b59c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commpy/channelcoding/convcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def visualize(self, trellis_length = 2, state_order = None,
edge_colors = ["#9E1BE0", "#06D65D"]

if state_order is None:
state_order = range(self.number_states)
state_order = list(range(self.number_states))

font = "sans-serif"
fig = plt.figure()
Expand Down

0 comments on commit 84b59c0

Please sign in to comment.