title: Python TypeError: missing 2 required positional arguments // How can I fix it?
body: <p>I have this <code>TypeError: capture_and_decode() missing 2 required positional arguments: 'bitrange' and 'axes'</code></p>
  
  <p>My code is this one:</p>
  
  <pre><code>def capture_and_decode(self, bitrange, axes):
      cam_width, cam_height = self.camera.resolution
      scr_range = self.display.displaywindow.resolution
      self.raw_images = numpy.empty((len(axes), cam_height, cam_width, bitrange))
  
      for axis in axes:
  
         for bits in range(0,bitrange):
             stripe_width = cam_width // 2 ** (bits + 1)
             print(stripe_width)
             binary = numpy.fromiter(GrayCode(bits + 1).generate_gray(), dtype=numpy.int) % 2
             vector = numpy.repeat(binary, stripe_width)
             img = numpy.tile(vector, (cam_height, 1))
  
         self.display.displaywindow.show(img)  
         time.sleep(0.25)
         self.raw_images[axis, :, :, bits] = self.camera.capture()
  </code></pre>
  
  <p>the error is in the last line.</p>