# Acoular 19.02 documentation

«  TimeInOut   ::   tprocess   ::   Mixer  »

class acoular.tprocess.MaskedTimeInOut

Signal processing block for channel and sample selection.

This class serves as intermediary to define (in)valid channels and samples for any SamplesGenerator (or derived) object. It gets samples from source and generates output via the generator result().

start = CLong(0, desc="start of valid samples")

Index of the first sample to be considered valid.

stop = Trait(None, None, CLong, desc="stop of valid samples")

Index of the last sample to be considered valid.

invalid_channels = List( desc="list of invalid channels")

Channels that are to be treated as invalid.

channels = Property(depends_on = ['invalid_channels', 'source.numchannels'], desc="channel mask")

Channel mask to serve as an index for all valid channels, is set automatically.

numchannels_total = Delegate('source', 'numchannels')

Number of channels in input, as given by source.

numsamples_total = Delegate('source', 'numsamples')

Number of samples in input, as given by source.

numchannels = Property(depends_on = ['invalid_channels',\ 'source.numchannels'], desc="number of valid input channels")

Number of valid channels, is set automatically.

numsamples = Property(depends_on = ['start', 'stop', 'source.numsamples'], desc="number of valid samples per channel")

Number of valid time samples, is set automatically.

basename = Property( depends_on = 'source.digest', desc="basename for cache file")

Name of the cache file without extension, readonly.

result(num)

Python generator that yields the output block-wise.

Parameters: num : integer This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block). Samples in blocks of shape (num, :attr:numchannels). The last block may be shorter than num.

«  TimeInOut   ::   tprocess   ::   Mixer  »
{"ft_lang_label":"__label__en","ft_lang_prob":0.68723273,"math_prob":0.9298536,"size":1848,"snap":"2019-13-2019-22","text_gpt3_token_len":451,"char_repetition_ratio":0.1719089,"word_repetition_ratio":0.0625,"special_character_ratio":0.23484848,"punctuation_ratio":0.17320262,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9562676,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-24T15:59:36Z\",\"WARC-Record-ID\":\"<urn:uuid:207b30cf-aa54-4d64-bd77-b91be7ed1898>\",\"Content-Length\":\"10400\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bb3f61cc-2ab2-4d5d-8d55-ec4309a8dbe0>\",\"WARC-Concurrent-To\":\"<urn:uuid:e1259f92-7c7d-4ddf-a846-dcae3f41bb90>\",\"WARC-IP-Address\":\"37.17.224.3\",\"WARC-Target-URI\":\"http://acoular.org/api_ref/generated/generated/acoular.tprocess.MaskedTimeInOut.html\",\"WARC-Payload-Digest\":\"sha1:EAFMLPFFXRUESRBS74SQD47SCTWGNYQJ\",\"WARC-Block-Digest\":\"sha1:FOO7LWVI2JOTU7CVISYMYE65YSCK256Z\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912203462.50_warc_CC-MAIN-20190324145706-20190324171706-00028.warc.gz\"}"}