def set_inputs(self, inputs):
        """Assign input voltages."""
        if len(inputs) != len(self.inputs):
            raise RuntimeError(
                "Number of inputs {0:d} does not match number of input nodes {1:d}".format(
                    len(inputs), len(self.inputs)))
        for i, v in zip(self.inputs, inputs):
            self.input_values[i] = v
def set_inputs ( self , inputs ) : if len ( inputs ) != len ( self . inputs ) : raise RuntimeError ( "Number of inputs {0:d} does not match number of input nodes {1:d}" . format ( len ( inputs ) , len ( self . inputs ) ) ) for i , v in zip ( self . inputs , inputs ) : self . input_values [ i ] = v
Assign input voltages.