parameters: (self, project_file_name)
return_statement: return ui_dict, err_msg
docstring: Load project from a project file suite
          :param project_file_name:
          :return:
docstring_summary: Load project from a project file suite
          :param project_file_name:
          :return:
docstring_tokens: Load project from a project file suite : param project_file_name : : return :
function: def load_project(self, project_file_name):
          """
          Load project from a project file suite
          :param project_file_name:
          :return:
          """
          # check validity
          assert isinstance(project_file_name, str), 'Project file name must be a string but not of type ' \
                                                     '%s.' % type(project_file_name)
  
          print('[INFO] Load project from %s.' % project_file_name)
  
          # instantiate a project manager instance and load the project
          saved_project = project_manager.ProjectManager(mode='import', project_file_path=project_file_name)
          err_msg = saved_project.load_from_disk()
          if len(err_msg) == 0:
              err_msg = None
  
          # set current value
          try:
              self._dataDir = saved_project.get('data dir')
          except KeyError:
              self._dataDir = None
  
          try:
              ui_dict = saved_project.get('gui parameters')
          except KeyError:
              ui_dict = dict()
  
          return ui_dict, err_msg
function_tokens: def load_project ( self , project_file_name ) : # check validity assert isinstance ( project_file_name , str ) , 'Project file name must be a string but not of type ' '%s.' % type ( project_file_name ) print ( '[INFO] Load project from %s.' % project_file_name ) # instantiate a project manager instance and load the project saved_project = project_manager . ProjectManager ( mode = 'import' , project_file_path = project_file_name ) err_msg = saved_project . load_from_disk ( ) if len ( err_msg ) == 0 : err_msg = None # set current value try : self . _dataDir = saved_project . get ( 'data dir' ) except KeyError : self . _dataDir = None try : ui_dict = saved_project . get ( 'gui parameters' ) except KeyError : ui_dict = dict ( ) return ui_dict , err_msg