class_docstr: Decoder taking Numpy array as input
class_docstr_tok: ["Decoder","taking","Numpy","array","as","input"]
docstr: Define an iterator that will return frames at the given blocksize
docstr_tok: ["Define","an","iterator","that","will","return","frames","at","the","given","blocksize"]
code: def get_frames(self):
      "Define an iterator that will return frames at the given blocksize"
      nb_frames = self.input_totalframes // self.output_blocksize
  
      if self.input_totalframes % self.output_blocksize == 0:
          nb_frames -= 1  # Last frame must send eod=True
  
      for index in range(
          0, nb_frames * self.output_blocksize, self.output_blocksize
      ):
          yield (
              self.samples[index : index + self.output_blocksize],
              False,
          )
  
      yield (self.samples[nb_frames * self.output_blocksize :], True)
  
file_path: TimeSide/timeside/plugins/decoder/array.py
imports: from timeside.core import implements, interfacedoc
  from timeside.core.decoder import Decoder, IDecoder
  import numpy
label_desc: Use image node_id 4 for calling the ArrayDecoder obj's underlying member method code with example usage: obj.get_frames() without return types