pylint fixes

This commit is contained in:
Roman Zeyde
2014-07-12 08:36:44 +03:00
parent 258953bce0
commit daaaac4318
4 changed files with 14 additions and 7 deletions

View File

@@ -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)