UT330BUI/controller/controller.py
def read_offsets(self):
        """Reads offsets from UT330B device."""

        if not self.connected:
            self.status = ("Cannot read UT330B offsets because "
                           "the UT330B is not connected.")
            self.update()
            return

        try:
            self.device_offsets = self.UT330B.read_offsets()
            self.status = "Offsets read from UT330B."

            if len(self.device_offsets) == 0:
                self.status = "No offset data read from device."

        except IOError as error:
            self.status = error.__str__()

        self.update()
Reads offsets from UT330B device.
Reads offsets from UT330B device.
Reads offsets from UT330B device .
def read_offsets(self):
        if not self.connected:
            self.status = ("Cannot read UT330B offsets because "
                           "the UT330B is not connected.")
            self.update()
            return
        try:
            self.device_offsets = self.UT330B.read_offsets()
            self.status = "Offsets read from UT330B."
            if len(self.device_offsets) == 0:
                self.status = "No offset data read from device."
        except IOError as error:
            self.status = error.__str__()
        self.update()
def read_offsets ( self ) : if not self . connected : self . status = ( "Cannot read UT330B offsets because " "the UT330B is not connected." ) self . update ( ) return try : self . device_offsets = self . UT330B . read_offsets ( ) self . status = "Offsets read from UT330B." if len ( self . device_offsets ) == 0 : self . status = "No offset data read from device." except IOError as error : self . status = error . __str__ ( ) self . update ( )
Reads offsets from UT330B device.
Reads offsets from UT330B device .
"""Reads offsets from UT330B device."""
self