qcodes/utils/threading.py
def call_params_threaded(param_meas: Sequence[ParamMeasT]) -> OutType:
    """
    Function to create threads per instrument for the given set of
    measurement parameters.

    Args:
        param_meas: a Sequence of measurement parameters

    """

    inst_param_mapping = _instrument_to_param(param_meas)
    executors = tuple(_ParamCaller(*param_list)
                      for param_list in
                      inst_param_mapping.values())

    output: OutType = []
    threads = [RespondingThread(target=executor)
               for executor in executors]

    for t in threads:
        t.start()

    for t in threads:
        thread_output = t.output()
        assert thread_output is not None
        for result in thread_output:
            output.append(result)

    return output

    Function to create threads per instrument for the given set of
    measurement parameters.

    Args:
        param_meas: a Sequence of measurement parameters

    
Function to create threads per instrument for the given set of
measurement parameters.
Function to create threads per instrument for the given set of measurement parameters .
def call_params_threaded(param_meas: Sequence[ParamMeasT]) -> OutType:
    inst_param_mapping = _instrument_to_param(param_meas)
    executors = tuple(_ParamCaller(*param_list)
                      for param_list in
                      inst_param_mapping.values())
    output: OutType = []
    threads = [RespondingThread(target=executor)
               for executor in executors]
    for t in threads:
        t.start()
    for t in threads:
        thread_output = t.output()
        assert thread_output is not None
        for result in thread_output:
            output.append(result)
    return output
def call_params_threaded ( param_meas : Sequence [ ParamMeasT ] ) -> OutType : inst_param_mapping = _instrument_to_param ( param_meas ) executors = tuple ( _ParamCaller ( * param_list ) for param_list in inst_param_mapping . values ( ) ) output : OutType = [ ] threads = [ RespondingThread ( target = executor ) for executor in executors ] for t in threads : t . start ( ) for t in threads : thread_output = t . output ( ) assert thread_output is not None for result in thread_output : output . append ( result ) return output
Function to create threads per instrument for the given set of
measurement parameters.
Function to create threads per instrument for the given set of measurement parameters .
"""
    Function to create threads per instrument for the given set of
    measurement parameters.

    Args:
        param_meas: a Sequence of measurement parameters

    """
param_meas
Sequence[ParamMeasT]
a Sequence of measurement parameters
a Sequence of measurement parameters