CalibHelper¶
- class spectacoular.lprocess.CalibHelper¶
Bases:
TimeOut
,BaseSpectacoular
Class for calibration of individual source channels
- source = Instance(ac.Average)¶
Data source;
Average
or derived object.
- file = File(filter=['*.xml'], desc="name of data file")¶
Name of the file to be saved. If none is given, the name will be automatically generated from a time stamp.
- magnitude = Float(114, …¶
calibration level (e. g. dB or Pa) of calibration device
- calibdata = CArray(dtype=float, …¶
calibration values determined during evaluation of
result()
. array of floats with dimension (num_channels, 2)
- calibfactor = CArray(dtype=float, …¶
calibration factor determined during evaluation of
save()
. array of floats with dimension (num_channels)
- buffer_size = Int(100, …¶
max elements/averaged blocks to calculate calibration value.
- calibstd = Float(.5, …¶
channel-wise allowed standard deviation of calibration values in buffer
- delta = Float(10, …¶
minimum allowed difference in magnitude between the channel to be calibrated and remaining channels.
- result(num)¶
Python generator that yields the output block-wise.
- Parameters:
- numinteger, defaults to 128
This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block) .
- Returns:
- Samples in blocks of shape (num, num_channels).
The last block may be shorter than num.