def get_data(self, **kwargs):
        '''
        Get the measurement data.
        If data is not set, read from 'self.datafile' using 'self.read_data'.
        '''
        if self.queue:
            new = self.apply_queued()
            return new.get_data()
        else:
            return self._get_attr_from_file('data', **kwargs)
def get_data ( self , ** kwargs ) : if self . queue : new = self . apply_queued ( ) return new . get_data ( ) else : return self . _get_attr_from_file ( 'data' , ** kwargs )
Get the measurement data.
        If data is not set, read from 'self.datafile' using 'self.read_data'.