common.loads() should return time only if asked to

This commit is contained in:
Roman Zeyde
2014-07-21 13:29:27 +03:00
parent 5d71431c7c
commit 3ccf4ff188
5 changed files with 15 additions and 10 deletions

View File

@@ -72,7 +72,7 @@ if __name__ == '__main__':
df, = sys.argv[1:]
df = float(df)
_, x = common.load(sys.stdin)
x = common.load(sys.stdin)
sampler = Sampler(x, Interpolator())
sampler.freq += df
y = np.array(list(sampler))