parameters: (
          self,
          size: int | None = None,
          timeout_ms: int | None = None,
          mode: str | None = None,
          **kwargs: Any,
      )
return_statement: return self.transport.read(
              size=size, timeout_ms=timeout_ms, mode=mode, **kwargs
          )
docstring: receive data from the spectrometer
  
          Parameters
          ----------
          size:
              number of bytes to receive. if `None` (default) uses the
              default size as specified in the transport layer.
          timeout_ms:
              the timeout after which the transport layer should error.
              `None` means no timeout (default)
          mode:
              transport layers can support different modes
              (i.e. {'low_speed', 'high_speed', 'high_speed_alt'} in the usb case)
          kwargs:
              ignored and only present to provide compatible caller interfaces
  
          Returns
          -------
          data:
              data returned from the spectrometer
docstring_summary: receive data from the spectrometer
docstring_tokens: receive data from the spectrometer
function: def receive(
          self,
          size: int | None = None,
          timeout_ms: int | None = None,
          mode: str | None = None,
          **kwargs: Any,
      ) -> bytes:
          """receive data from the spectrometer
  
          Parameters
          ----------
          size:
              number of bytes to receive. if `None` (default) uses the
              default size as specified in the transport layer.
          timeout_ms:
              the timeout after which the transport layer should error.
              `None` means no timeout (default)
          mode:
              transport layers can support different modes
              (i.e. {'low_speed', 'high_speed', 'high_speed_alt'} in the usb case)
          kwargs:
              ignored and only present to provide compatible caller interfaces
  
          Returns
          -------
          data:
              data returned from the spectrometer
          """
          if kwargs:
              warnings.warn(f"kwargs provided but ignored: {kwargs}")
          return self.transport.read(
              size=size, timeout_ms=timeout_ms, mode=mode, **kwargs
          )
function_tokens: def receive ( self , size : int | None = None , timeout_ms : int | None = None , mode : str | None = None , * * kwargs : Any , ) -> bytes : if kwargs : warnings . warn ( f"kwargs provided but ignored: {kwargs}" ) return self . transport . read ( size = size , timeout_ms = timeout_ms , mode = mode , * * kwargs )