qcodes/instrument/delegate/delegate_instrument.py
def parse_instrument_path(
        parent: Union[Station, InstrumentBase],
        path: str,
    ) -> Any:
        """Parse a string path and return the object relative to a station or
        instrument, e.g. "my_instrument.my_param" returns
        station.my_instrument.my_param

        Args:
            parent: Measurement station
            path: Relative path to parse
        """
        def _parse_path(parent: Any, elem: Sequence[str]) -> Any:
            child = getattr(parent, elem[0])
            if len(elem) == 1:
                return child
            return _parse_path(child, elem[1:])

        return _parse_path(parent, path.split("."))
Parse a string path and return the object relative to a station or
        instrument, e.g. "my_instrument.my_param" returns
        station.my_instrument.my_param

        Args:
            parent: Measurement station
            path: Relative path to parse
        
Parse a string path and return the object relative to a station or
instrument, e.g.
Parse a string path and return the object relative to a station or instrument e . g .
def parse_instrument_path(
        parent: Union[Station, InstrumentBase],
        path: str,
    ) -> Any:
        def _parse_path(parent: Any, elem: Sequence[str]) -> Any:
            child = getattr(parent, elem[0])
            if len(elem) == 1:
                return child
            return _parse_path(child, elem[1:])
        return _parse_path(parent, path.split("."))
def parse_instrument_path ( parent : Union [ Station , InstrumentBase ] , path : str , ) -> Any : def _parse_path ( parent : Any , elem : Sequence [ str ] ) -> Any : child = getattr ( parent , elem [ 0 ] ) if len ( elem ) == 1 : return child return _parse_path ( child , elem [ 1 : ] ) return _parse_path ( parent , path . split ( "." ) )
Parse a string path and return the object relative to a station or
instrument, e.g.
Parse a string path and return the object relative to a station or instrument e . g .
"""Parse a string path and return the object relative to a station or
        instrument, e.g. "my_instrument.my_param" returns
        station.my_instrument.my_param

        Args:
            parent: Measurement station
            path: Relative path to parse
        """
parent
Union[Station, InstrumentBase]
None
path
str
Relative path to parse
Relative path to parse