def __init__(self, params, offset=0):
        self.__dict__ = self.__shared_state
        agents.Agent.__init__(self, params, offset)
        if not self.__dict__ in 'logfile':
            try:
                filename = os.path.join(params.exp_path, self.args[0])
            except (AttributeError, IndexError):
                raise MissingParameter, 'filename'
            del self.args
            self.logfile = open(filename, 'r')
dataset/ETHPy150Open jcbagneris/fms/fms/agents/playorderlogfile.py/PlayOrderLogFile.__init__/swapped operands of `in`