qcodes/dataset/guids.py
def filter_guids_by_parts(guids: Sequence[str],
                          location: Optional[int] = None,
                          sample_id: Optional[int] = None,
                          work_station: Optional[int] = None) -> List[str]:
    """
    Filter a sequence of GUIDs by location, sample_id and/or work_station.

    Args:
        guids: Sequence of guids that should be filtered.
        location: Location code to match
        sample_id: Sample_id to match
        work_station: Workstation to match

    Returns:
        A list of GUIDs that matches the supplied parts.
    """
    matched_guids = []
    for guid in guids:
        guid_dict = parse_guid(guid)
        match = True
        if sample_id is not None:
            if guid_dict['sample'] != sample_id:
                match = False
        if location is not None:
            if guid_dict['location'] != location:
                match = False
        if work_station is not None:
            if guid_dict['work_station'] != work_station:
                match = False

        if match:
            matched_guids.append(guid)
    return matched_guids

    Filter a sequence of GUIDs by location, sample_id and/or work_station.

    Args:
        guids: Sequence of guids that should be filtered.
        location: Location code to match
        sample_id: Sample_id to match
        work_station: Workstation to match

    Returns:
        A list of GUIDs that matches the supplied parts.
    
Filter a sequence of GUIDs by location, sample_id and/or work_station.
Filter a sequence of GUIDs by location sample_id and / or work_station .
def filter_guids_by_parts(guids: Sequence[str],
                          location: Optional[int] = None,
                          sample_id: Optional[int] = None,
                          work_station: Optional[int] = None) -> List[str]:
    matched_guids = []
    for guid in guids:
        guid_dict = parse_guid(guid)
        match = True
        if sample_id is not None:
            if guid_dict['sample'] != sample_id:
                match = False
        if location is not None:
            if guid_dict['location'] != location:
                match = False
        if work_station is not None:
            if guid_dict['work_station'] != work_station:
                match = False
        if match:
            matched_guids.append(guid)
    return matched_guids
def filter_guids_by_parts ( guids : Sequence [ str ] , location : Optional [ int ] = None , sample_id : Optional [ int ] = None , work_station : Optional [ int ] = None ) -> List [ str ] : matched_guids = [ ] for guid in guids : guid_dict = parse_guid ( guid ) match = True if sample_id is not None : if guid_dict [ 'sample' ] != sample_id : match = False if location is not None : if guid_dict [ 'location' ] != location : match = False if work_station is not None : if guid_dict [ 'work_station' ] != work_station : match = False if match : matched_guids . append ( guid ) return matched_guids
Filter a sequence of GUIDs by location, sample_id and/or work_station.
Filter a sequence of GUIDs by location sample_id and / or work_station .
"""
    Filter a sequence of GUIDs by location, sample_id and/or work_station.

    Args:
        guids: Sequence of guids that should be filtered.
        location: Location code to match
        sample_id: Sample_id to match
        work_station: Workstation to match

    Returns:
        A list of GUIDs that matches the supplied parts.
    """
A list of GUIDs that matches the supplied parts.
A list of GUIDs that matches the supplied parts .
guids
Sequence[str]
Sequence of guids that should be filtered.
Sequence of guids that should be filtered .
location
Optional[int]
Location code to match
Location code to match
sample_id
Optional[int]
Sample_id to match
Sample_id to match
work_station
Optional[int]
Workstation to match
Workstation to match