Skip to content
Snippets Groups Projects
Commit e525a65e authored by Madeline Wade's avatar Madeline Wade
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 5fd59db1
No related branches found
No related tags found
1 merge request!114Add new mode to FakeSeriesSource
......@@ -162,10 +162,8 @@ class FakeSeriesSource(TSSource):
)
elif self.signal_type == "impulse":
return self.create_impulse_data(offset, buf.samples, buf.sample_rate)
elif self.signal_type == "const_int" or self.signal_type == "constant_int":
return np.full(buf.shape, int(self.const_int))
elif self.signal_type == "const_float" or self.signal_type == "constant_float":
return np.full(buf.shape, float(self.const_float))
elif self.signal_type == "const":
return np.full(buf.shape, self.const_int)
else:
raise ValueError("Unknown signal type")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment