def read_probes(self, key):
        """
        requestes value from the instrument and returns it
        Args:
            key: name of requested value

        Returns: reads values from instrument

        """
        assert key in list(self._PROBES.keys())

        import random
        if key == 'value1':
            value = random.random()
        elif key == 'value2':
            value = self.settings['output probe2']
        elif key == 'internal':
            value = self._internal_state
        elif key == 'deep_internal':
            value = self._internal_state_deep

        return value
def read_probes ( self , key ) : assert key in list ( self . _PROBES . keys ( ) ) import random if key == 'value1' : value = random . random ( ) elif key == 'value2' : value = self . settings [ 'output probe2' ] elif key == 'internal' : value = self . _internal_state elif key == 'deep_internal' : value = self . _internal_state_deep return value
requestes value from the instrument and returns it
        Args:
            key: name of requested value

        Returns: reads values from instrument