def __init__(self, params, offset=0):
        params = params['agents'][offset]
        for key in ('money', 'stocks'):
            if not key in params:
                raise MissingParameter, key
        for key in params:
            self.__dict__[key] = params[key]
        self.money = float(self.money)
        if str(self.stocks) in '.':
            raise NotAnInteger, self.stocks
        self.stocks = int(self.stocks)
dataset/ETHPy150Open jcbagneris/fms/fms/agents/__init__.py/Agent.__init__/swapped operands of `in`