Skip to content

Commit e0bbf32

Browse files
author
Ravi Sharan
committed
Fix PSKModem and update gitignore
1 parent bd998b0 commit e0bbf32

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55

66
/doc/_build
77
/doc/generated
8-
8+
/build
9+
/dist
10+
/scikit_commpy.egg-info

commpy/modulation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def __init__(self, m):
112112
self.m = m
113113
self.num_bits_symbol = int(log2(self.m))
114114
self.symbol_mapping = arange(self.m)
115-
self.constellation = map(self._constellation_symbol,
116-
self.symbol_mapping)
115+
self.constellation = array(map(self._constellation_symbol,
116+
self.symbol_mapping))
117117

118118
class QAMModem(Modem):
119119
""" Creates a Quadrature Amplitude Modulation (QAM) Modem object."""

0 commit comments

Comments
 (0)