def set_variables(self, vars):
    if ((type(vars) != type([])) or (type(vars) != type({}))):
        raise ValueError('arguments must be either a dictionary or a list')
    if (type(vars) == type([])):
        if (len(vars) != 8):
            raise ValueError('You must enter the following arguments: A, k0, delta, s, n, alpha, t0, tmax')
        else:
            self.setA(vars[0])
            self.setK0(vars[1])
            self.setDelta(vars[2])
            self.setS(vars[3])
            self.setN(vars[4])
            self.setAlpha(vars[5])
            self.setTRange(vars[6], vars[7])
    if (type(vars) == type({})):
        try:
            self.setA(vars['A'])
            self.setK0(vars['k0'])
            self.setDelta(vars['delta'])
            self.setS(vars['s'])
            self.setN(vars['n'])
            self.setAlpha(vars['alpha'])
            self.setTRange(vars['t0'], vars['tmax'])
        except KeyError:
            raise ValueError('Your dictionary must have the keys A, k0, delta, s, n, alpha, t0, and tmax')
def set_variables(self, vars):
    if ((type(vars) != type([])) or (type(vars) != type({}))):
        raise ValueError('arguments must be either a dictionary or a list')
    if (type(vars) == type([])):
        if (len(vars) != 8):
            raise ValueError('You must enter the following arguments: A, k0, delta, s, n, alpha, t0, tmax')
        else:
            self.setA(vars[0])
            self.setK0(vars[1])
            self.setDelta(vars[2])
            self.setS(vars[3])
            self.setN(vars[4])
            self.setAlpha(vars[5])
            self.setTRange(vars[6], vars[7])
    if (type(vars) == type({})):
        try:
            self.setA(vars['A'])
            self.setK0(vars['k0'])
            self.setDelta(vars['delta'])
            self.setS(vars['s'])
            self.setN(vars['n'])
            self.setAlpha(vars['alpha'])
            self.setTRange(vars['t0'], vars['tmax'])
        except KeyError:
            raise ValueError('Your dictionary must have the keys A, k0, delta, s, n, alpha, t0, and tmax')