'One dimensional Shift model function'

@staticmethod
def evaluate(x, offset):

    if isinstance(offset, u.Quantity):
        return_unit = offset.unit
        offset = offset.value
    if isinstance(x, u.Quantity):
        x = x.value
        return ((x + offset) * return_unit)
    else:
        return (x + offset)
