qcodes/data/data_set.py
def default_parameter_name(self, paramname: Optional[str] = None) -> Optional[str]:
        """Return name of default parameter for plotting

        The default parameter is determined by looking into
        metdata['default_parameter_name'].  If this variable is not present,
        then the closest match to the argument paramname is tried.

        Args:
            paramname: Name to match to parameter name

        Returns:
            Name of the default parameter, or None if no parameter is found
        """
        arraynames = self.arrays.keys()

        # overrule parameter name from the metadata
        if self.metadata.get('default_parameter_name', False):
            paramname = self.metadata['default_parameter_name']

        # try to return the exact name
        if paramname in arraynames:
            return paramname

        # try find something similar
        if paramname is not None:
            vv = [v for v in arraynames if v.endswith(paramname)]
            if len(vv) > 0:
                return vv[0]
            vv = [v for v in arraynames if v.startswith(paramname)]
            if len(vv) > 0:
                return vv[0]

        # try to get the first non-setpoint array
        vv = [v for v in arraynames if not self.arrays[v].is_setpoint]
        if (len(vv) > 0):
            return sorted(vv)[0]

        # fallback: any array found
        try:
            name = sorted(list(arraynames))[0]
            return name
        except IndexError:
            pass
        return None
Return name of default parameter for plotting

        The default parameter is determined by looking into
        metdata['default_parameter_name'].  If this variable is not present,
        then the closest match to the argument paramname is tried.

        Args:
            paramname: Name to match to parameter name

        Returns:
            Name of the default parameter, or None if no parameter is found
        
Return name of default parameter for plotting
The default parameter is determined by looking into
metdata['default_parameter_name'].  If this variable is not present,
then the closest match to the argument paramname is tried.
Return name of default parameter for plotting The default parameter is determined by looking into metdata [ ' default_parameter_name ' ] . If this variable is not present then the closest match to the argument paramname is tried .
def default_parameter_name(self, paramname: Optional[str] = None) -> Optional[str]:
        arraynames = self.arrays.keys()
        if self.metadata.get('default_parameter_name', False):
            paramname = self.metadata['default_parameter_name']
        if paramname in arraynames:
            return paramname
        if paramname is not None:
            vv = [v for v in arraynames if v.endswith(paramname)]
            if len(vv) > 0:
                return vv[0]
            vv = [v for v in arraynames if v.startswith(paramname)]
            if len(vv) > 0:
                return vv[0]
        vv = [v for v in arraynames if not self.arrays[v].is_setpoint]
        if (len(vv) > 0):
            return sorted(vv)[0]
        try:
            name = sorted(list(arraynames))[0]
            return name
        except IndexError:
            pass
        return None
def default_parameter_name ( self , paramname : Optional [ str ] = None ) -> Optional [ str ] : arraynames = self . arrays . keys ( ) if self . metadata . get ( 'default_parameter_name' , False ) : paramname = self . metadata [ 'default_parameter_name' ] if paramname in arraynames : return paramname if paramname is not None : vv = [ v for v in arraynames if v . endswith ( paramname ) ] if len ( vv ) > 0 : return vv [ 0 ] vv = [ v for v in arraynames if v . startswith ( paramname ) ] if len ( vv ) > 0 : return vv [ 0 ] vv = [ v for v in arraynames if not self . arrays [ v ] . is_setpoint ] if ( len ( vv ) > 0 ) : return sorted ( vv ) [ 0 ] try : name = sorted ( list ( arraynames ) ) [ 0 ] return name except IndexError : pass return None
Return name of default parameter for plotting
The default parameter is determined by looking into
metdata['default_parameter_name'].
Return name of default parameter for plotting The default parameter is determined by looking into metdata [ ' default_parameter_name ' ] .
"""Return name of default parameter for plotting

        The default parameter is determined by looking into
        metdata['default_parameter_name'].  If this variable is not present,
        then the closest match to the argument paramname is tried.

        Args:
            paramname: Name to match to parameter name

        Returns:
            Name of the default parameter, or None if no parameter is found
        """ # overrule parameter name from the metadata # try to return the exact name # try find something similar # try to get the first non-setpoint array # fallback: any array found
Name of the default parameter, or None if no parameter is found
Name of the default parameter or None if no parameter is found
self
paramname
Optional[str]
Name to match to parameter name
Name to match to parameter name