def drive_pump(self, volume, direction):
    'Converts volume to cycles and ensures and checks pump level and values'
    if (direction == 0):
        space_in_pump = (self.max_pump_capacity - self.volume_in_pump)
        if (volume > space_in_pump):
            interfaces.lcd_out('Filling Error', line=4)
        else:
            interfaces.lcd_out('Filling {0:1.2f} ml'.format(volume), line=4)
            cycles = analysis.determine_pump_cycles(volume)
            self.drive_step_stick(cycles, direction)
            self.volume_in_pump += volume
    elif (direction == 1):
        if (volume > self.volume_in_pump):
            interfaces.lcd_out('Pumping Error', line=4)
        else:
            interfaces.lcd_out('Pumping {0:1.2f} ml'.format(volume), line=4)
            cycles = analysis.determine_pump_cycles(volume)
            offset = self.drive_step_stick(cycles, direction)
            if (offset != 0):
                self.drive_step_stick(offset, 0)
                self.drive_step_stick(offset, 1)
            self.volume_in_pump -= volume
    interfaces.lcd_out('Pump Vol: {0:1.2f} ml'.format(self.volume_in_pump), line=4)
Converts volume to cycles and ensures and checks pump level and values
def drive_pump(self, volume, direction):
    
    if (direction == 0):
        space_in_pump = (self.max_pump_capacity - self.volume_in_pump)
        if (volume > space_in_pump):
            interfaces.lcd_out('Filling Error', line=4)
        else:
            interfaces.lcd_out('Filling {0:1.2f} ml'.format(volume), line=4)
            cycles = analysis.determine_pump_cycles(volume)
            self.drive_step_stick(cycles, direction)
            self.volume_in_pump += volume
    elif (direction == 1):
        if (volume > self.volume_in_pump):
            interfaces.lcd_out('Pumping Error', line=4)
        else:
            interfaces.lcd_out('Pumping {0:1.2f} ml'.format(volume), line=4)
            cycles = analysis.determine_pump_cycles(volume)
            offset = self.drive_step_stick(cycles, direction)
            if (offset != 0):
                self.drive_step_stick(offset, 0)
                self.drive_step_stick(offset, 1)
            self.volume_in_pump -= volume
    interfaces.lcd_out('Pump Vol: {0:1.2f} ml'.format(self.volume_in_pump), line=4)