#NEWLINE# def __init__( self , filename , mode , header = False , vlrs = False , evlrs = False ) : #NEWLINE# #INDENT# 'Build the FileManager object. This is done when opening the file\n        as well as upon completion of file modification actions like changing the \n        header padding.' #NEWLINE# self . compressed = False #NEWLINE# self . vlr_formats = laspy . util . Format ( 'VLR' ) #NEWLINE# self . evlr_formats = laspy . util . Format ( 'EVLR' ) #NEWLINE# self . mode = mode #NEWLINE# self . data_provider = DataProvider ( filename , self ) #NEWLINE# self . setup_memoizing ( ) #NEWLINE# self . calc_point_recs = False #NEWLINE# self . point_refs = False #NEWLINE# self . _current = 0 #NEWLINE# self . padded = False #NEWLINE# if ( self . mode == 'r' ) : #NEWLINE# #INDENT# self . setup_read_write ( vlrs , evlrs , read_only = True ) #NEWLINE# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . mode == 'rw' ) : #NEWLINE# #INDENT# self . setup_read_write ( vlrs , evlrs , read_only = False ) #NEWLINE# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . mode == 'w' ) : #NEWLINE# #INDENT# self . setup_write ( header , vlrs , evlrs ) #NEWLINE# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise laspy . util . LaspyException ( 'Append Mode Not Supported' )