(self, model_dict, key_name='isometric_model')
load model
load model
load model
def _load_tree_model(self, model_dict, key_name='isometric_model'):
        """
        load model
        """
        # judge input model type by key in model_dict
        LOGGER.info('loading model')
        tree_model_type = self._get_model_type(model_dict[key_name])
        LOGGER.info('model type is {}'.format(tree_model_type))
        if tree_model_type is None:
            raise ValueError('key related to tree models is not detected in model dict,'
                             'please check the input model')
        self._init_tree(tree_model_type)
        # initialize tree model
        self.tree_model.load_model(model_dict, model_key=key_name)
        self.tree_model.set_flowid(self.flowid)
        self.tree_model.component_properties = copy.deepcopy(self.component_properties)

        LOGGER.info('loading {} model done'.format(tree_model_type))
def _load_tree_model ( self , model_dict , key_name = 'isometric_model' ) : # judge input model type by key in model_dict LOGGER . info ( 'loading model' ) tree_model_type = self . _get_model_type ( model_dict [ key_name ] ) LOGGER . info ( 'model type is {}' . format ( tree_model_type ) ) if tree_model_type is None : raise ValueError ( 'key related to tree models is not detected in model dict,' 'please check the input model' ) self . _init_tree ( tree_model_type ) # initialize tree model self . tree_model . load_model ( model_dict , model_key = key_name ) self . tree_model . set_flowid ( self . flowid ) self . tree_model . component_properties = copy . deepcopy ( self . component_properties ) LOGGER . info ( 'loading {} model done' . format ( tree_model_type ) )