qcodes/instrument_drivers/tektronix/Keithley_2600_channels.py
def _scriptwrapper(program: List[str], debug: bool=False) -> str:
        """
        wraps a program so that the output can be put into
        visa_handle.write and run.
        The script will run immediately as an anonymous script.

        Args:
            program: A list of program instructions. One line per
            list item, e.g. ['for ii = 1, 10 do', 'print(ii)', 'end' ]
        """
        mainprog = '\r\n'.join(program) + '\r\n'
        wrapped = f'loadandrunscript\r\n{mainprog}endscript'
        if debug:
            log.debug('Wrapped the following script:')
            log.debug(wrapped)
        return wrapped

        wraps a program so that the output can be put into
        visa_handle.write and run.
        The script will run immediately as an anonymous script.

        Args:
            program: A list of program instructions. One line per
            list item, e.g. ['for ii = 1, 10 do', 'print(ii)', 'end' ]
        
wraps a program so that the output can be put into
visa_handle.write and run.
The script will run immediately as an anonymous script.

A list of program instructions. One line per
list item, e.g.
wraps a program so that the output can be put into visa_handle . write and run . The script will run immediately as an anonymous script . A list of program instructions . One line per list item e . g .
def _scriptwrapper(program: List[str], debug: bool=False) -> str:
        mainprog = '\r\n'.join(program) + '\r\n'
        wrapped = f'loadandrunscript\r\n{mainprog}endscript'
        if debug:
            log.debug('Wrapped the following script:')
            log.debug(wrapped)
        return wrapped
def _scriptwrapper ( program : List [ str ] , debug : bool = False ) -> str : mainprog = '\r\n' . join ( program ) + '\r\n' wrapped = f'loadandrunscript\r\n{mainprog}endscript' if debug : log . debug ( 'Wrapped the following script:' ) log . debug ( wrapped ) return wrapped
wraps a program so that the output can be put into
visa_handle.write and run.
wraps a program so that the output can be put into visa_handle . write and run .
"""
        wraps a program so that the output can be put into
        visa_handle.write and run.
        The script will run immediately as an anonymous script.

        Args:
            program: A list of program instructions. One line per
            list item, e.g. ['for ii = 1, 10 do', 'print(ii)', 'end' ]
        """
program
List[str]
debug
bool