Skip to content

Commit 84b59c0

Browse files
authored
Update method visualize()
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.
1 parent 68c096a commit 84b59c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commpy/channelcoding/convcode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def visualize(self, trellis_length = 2, state_order = None,
257257
edge_colors = ["#9E1BE0", "#06D65D"]
258258

259259
if state_order is None:
260-
state_order = range(self.number_states)
260+
state_order = list(range(self.number_states))
261261

262262
font = "sans-serif"
263263
fig = plt.figure()

0 commit comments

Comments
 (0)