def METHOD_NAME(self, target_current, current_step=0.1):
    """
    Gradually increase/decrease current to target current.
    :param target_current: Float that sets the target current (in A)
    :param current_step: Optional float that sets the current steps
                         / ramp rate (in A/s)
    """
    curr = self.current
    n = round(abs(curr - target_current) / current_step) + 1
    for i in linspace(curr, target_current, n):
        self.current = i
        sleep(0.1)