#NEWLINE# def __init__( self , chainPath , level = 2 , wb = False ) : #NEWLINE# #INDENT# "chainPath is the location of the Markov chain to load; wb is\n\t\tfor Shelve's writeback option. If writeback is set to true, \n\t\tShelve will keep track of all changes to the chains and save \n\t\tthem when closed. We don't need this during normal operation." #NEWLINE# self . level = level #NEWLINE# self . chain = shelve . open ( chainPath , protocol = 2 , writeback = wb )