mirror of
https://github.com/romanz/amodem.git
synced 2026-04-02 01:36:49 +08:00
config: bits_per_baud should be integer
This commit is contained in:
@@ -32,8 +32,8 @@ class Configuration(object):
|
||||
self.Nsym = int(self.Tsym / self.Ts)
|
||||
self.baud = int(1.0 / self.Tsym)
|
||||
|
||||
bits_per_symbol = np.log2(self.Npoints)
|
||||
assert int(bits_per_symbol) == bits_per_symbol
|
||||
bits_per_symbol = int(np.log2(self.Npoints))
|
||||
assert 2 ** bits_per_symbol == self.Npoints
|
||||
self.bits_per_baud = bits_per_symbol * self.Nfreq
|
||||
self.modem_bps = self.baud * self.bits_per_baud
|
||||
self.carriers = np.array([
|
||||
|
||||
Reference in New Issue
Block a user