MCPcopy Create free account
hub / github.com/PyTTaMaster/PyTTa / RecMeasure

Class RecMeasure

pytta/classes/measurement.py:282–456  ·  view source on GitHub ↗

Recording object Properties: ------------ * lengthDomain ('time'), (str): signal's length domain. May be 'time' or 'samples'; * timeLength (seconds), (float): signal's time length in seconds for lengthDomain = 'time'; * fftDegree (fftD

Source from the content-addressed store, hash-verified

280
281# RecMeasure class
282class RecMeasure(_MeasurementBase):
283 """
284 Recording object
285
286 Properties:
287 ------------
288
289 * lengthDomain ('time'), (str):
290 signal's length domain. May be 'time' or 'samples';
291
292 * timeLength (seconds), (float):
293 signal's time length in seconds for lengthDomain = 'time';
294
295 * fftDegree (fftDegree), (float):
296 2**fftDegree signal's number of samples for\
297 lengthDomain = 'samples';
298
299 * device (system default), (list/int):
300 list of input and output devices;
301
302 * inChannels ([1]), (list/int):
303 list of device's input channel used for recording;
304
305 * samplingRate (44100), (int):
306 signal's sampling rate;
307
308 * numSamples (samples), (int):
309 signal's number of samples
310
311 * freqMin (20), (float):
312 minimum frequency bandwidth limit;
313
314 * freqMax (20000), (float):
315 maximum frequency bandwidth limit;
316
317 * comment ('No comments.'), (str):
318 some commentary about the signal or measurement object;
319
320 Methods:
321 ---------
322
323 * run():
324 starts recording using the inch and device information, during
325 timeLen seconds;
326 """
327
328 def __init__(self,
329 lengthDomain=None,
330 fftDegree=None,
331 timeLength=None,
332 *args, **kwargs):
333 super().__init__(*args, **kwargs)
334 self.lengthDomain = lengthDomain
335 if self.lengthDomain == 'samples':
336 self.fftDegree = fftDegree
337 elif self.lengthDomain == 'time':
338 self.timeLength = timeLength
339 else:

Callers 3

measurementFunction · 0.90
__parse_loadFunction · 0.90
calib_pressureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected