MCPcopy
hub / github.com/PaddlePaddle/ERNIE / get_default_user_dict

Method get_default_user_dict

erniekit/webui/common.py:225–240  ·  view source on GitHub ↗

Retrieve default user configuration from dictionary Args: self (object): Instance of the class module (str): Configuration module name (str): Configuration item name Returns: dict: Default configuration dictionary or None if

(self, module, name)

Source from the content-addressed store, hash-verified

223 return self._execute_yaml_path[name]
224
225 def get_default_user_dict(self, module, name):
226 """
227 Retrieve default user configuration from dictionary
228
229 Args:
230 self (object): Instance of the class
231 module (str): Configuration module
232 name (str): Configuration item name
233
234 Returns:
235 dict: Default configuration dictionary or None if not found
236 """
237 try:
238 return self._user_default_config[module][name]
239 except KeyError:
240 return None
241
242 def get_default_dict_module(self, module):
243 """

Callers 5

buildFunction · 0.80
buildFunction · 0.80
buildFunction · 0.80
buildFunction · 0.80
buildFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected