visadore/mock_instrument/feature.py
def feature(self, a, b):
		"""Returns the product of two numbers after storing the values in the mock instrument."""
		with self.resource_manager.open_resource(self.resource_name) as inst:
			inst.write("A {:.2f}".format(a))
			inst.write("B {:.2f}".format(b))
			return float(inst.query("A?")) * float(inst.query("B?"))
Returns the product of two numbers after storing the values in the mock instrument.
Returns the product of two numbers after storing the values in the mock instrument.
Returns the product of two numbers after storing the values in the mock instrument .
def feature(self, a, b):
		with self.resource_manager.open_resource(self.resource_name) as inst:
			inst.write("A {:.2f}".format(a))
			inst.write("B {:.2f}".format(b))
			return float(inst.query("A?")) * float(inst.query("B?"))
def feature ( self , a , b ) : with self . resource_manager . open_resource ( self . resource_name ) as inst : inst . write ( "A {:.2f}" . format ( a ) ) inst . write ( "B {:.2f}" . format ( b ) ) return float ( inst . query ( "A?" ) ) * float ( inst . query ( "B?" ) )
Returns the product of two numbers after storing the values in the mock instrument.
Returns the product of two numbers after storing the values in the mock instrument .
"""Returns the product of two numbers after storing the values in the mock instrument."""
self
a
b