mirror of
https://github.com/romanz/amodem.git
synced 2026-02-08 10:28:00 +08:00
pylint fixes
This commit is contained in:
@@ -3,6 +3,7 @@ import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Interpolator(object):
|
||||
def __init__(self, resolution=10000, width=128):
|
||||
self.width = width
|
||||
@@ -28,6 +29,7 @@ class Interpolator(object):
|
||||
coeffs = self.filt[j]
|
||||
return coeffs, k - self.width
|
||||
|
||||
|
||||
class Sampler(object):
|
||||
def __init__(self, src, interp=None):
|
||||
self.src = iter(src)
|
||||
@@ -70,6 +72,6 @@ if __name__ == '__main__':
|
||||
_, x = common.load(sys.stdin)
|
||||
sampler = Sampler(x, Interpolator())
|
||||
sampler.freq += df
|
||||
y = np.array(list(sampler), )
|
||||
sys.stdout.write( common.dumps(y*1j) )
|
||||
|
||||
y = np.array(list(sampler))
|
||||
y = common.dumps(y*1j)
|
||||
sys.stdout.write(y)
|
||||
|
||||
Reference in New Issue
Block a user