

def read(self, f):
    '\n        Read method.\n\n        Parameters\n        ----------\n        f : string\n            Path to the .pkl file on disk.\n\n        Returns\n        -------\n        PyBot state dictionary if the file exists; None otherwise.\n        '
    if (not os.path.exists(f)):
        logging.info(('%s does not exist.' % f))
        return None
    logging.info(('Retrieving state from %s.' % f))
    fp = open(f)
    state = pickle.load(fp)
    fp.close()
    return state

dataset/ETHPy150Open magsol/pybot/pybot/storage.py PickleStorage.read/original