#NEWLINE# def __init__( self , params = None , offset = 0 ) : #NEWLINE# #INDENT# if params : #NEWLINE# #INDENT# self . days = params [ 'engines' ] [ offset ] [ 'days' ] #NEWLINE# self . daylength = params [ 'engines' ] [ offset ] [ 'daylength' ] #NEWLINE# self . csvdelimiter = params [ 'csvdelimiter' ] #NEWLINE# self . clearbooksateod = params [ 'engines' ] [ offset ] [ 'clearbooksateod' ] #NEWLINE# self . showbooks = params [ 'show_books' ] #NEWLINE# self . unique_by_agent = params [ 'unique_by_agent' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . days = 1 #NEWLINE# self . daylength = 1 #NEWLINE# self . csvdelimiter = ';' #NEWLINE# self . clearbooksateod = True #NEWLINE# self . showbooks = False #NEWLINE# self . unique_by_agent = True