#NEWLINE# def __init__( self , modelname = 'modflowtest' , namefile_ext = 'nam' , exe_name = 'mf2k.exe' , model_ws = None , structured = True , **kwargs ) : #NEWLINE# #INDENT# '\n        BaseModel init\n        ' #NEWLINE# self . __name = modelname #NEWLINE# self . namefile_ext = namefile_ext #NEWLINE# self . namefile = ( ( self . __name + '.' ) + self . namefile_ext ) #NEWLINE# self . packagelist = [ ] #NEWLINE# self . heading = '' #NEWLINE# self . exe_name = exe_name #NEWLINE# self . external_extension = 'ref' #NEWLINE# if ( model_ws is None ) : #NEWLINE# #INDENT# model_ws = os . getcwd ( ) #NEWLINE# #UNINDENT# if ( not os . path . exists ( model_ws ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# os . makedirs ( model_ws ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# print ( '\n{0:s} not valid, workspace-folder was changed to {1:s}\n' . format ( model_ws , os . getcwd ( ) ) ) #NEWLINE# model_ws = os . getcwd ( ) #NEWLINE# #UNINDENT# #UNINDENT# self . _model_ws = model_ws #NEWLINE# self . structured = structured #NEWLINE# self . pop_key_list = [ ] #NEWLINE# self . cl_params = '' #NEWLINE# xul = kwargs . pop ( 'xul' , None ) #NEWLINE# yul = kwargs . pop ( 'yul' , None ) #NEWLINE# rotation = kwargs . pop ( 'rotation' , 0.0 ) #NEWLINE# proj4_str = kwargs . pop ( 'proj4_str' , 'EPSG:4326' ) #NEWLINE# self . start_datetime = kwargs . pop ( 'start_datetime' , '1-1-1970' ) #NEWLINE# self . _sr = utils . SpatialReference ( xul = xul , yul = yul , rotation = rotation , proj4_str = proj4_str ) #NEWLINE# self . array_free_format = True #NEWLINE# self . array_format = None #NEWLINE# self . external_fnames = [ ] #NEWLINE# self . external_units = [ ] #NEWLINE# self . external_binflag = [ ] #NEWLINE# self . package_units = [ ] #NEWLINE# return