MCPcopy
hub / github.com/ray-project/ray / get_config

Method get_config

python/ray/data/context.py:1105–1113  ·  view source on GitHub ↗

Get the value for a key-value style config. Args: key: The key of the config. default: The default value to return if the key is not found. Returns: The value for the key, or the default value if the key is not found.

(self, key: str, default: Any = None)

Source from the content-addressed store, hash-verified

1103 return classes
1104
1105 def get_config(self, key: str, default: Any = None) -> Any:
1106 """Get the value for a key-value style config.
1107
1108 Args:
1109 key: The key of the config.
1110 default: The default value to return if the key is not found.
1111 Returns: The value for the key, or the default value if the key is not found.
1112 """
1113 return self._kv_configs.get(key, default)
1114
1115 def set_config(self, key: str, value: Any) -> None:
1116 """Set the value for a key-value style config.

Callers 12

checkFunction · 0.45
test_context_inheritanceFunction · 0.45
read_fnMethod · 0.45
test_mapFunction · 0.45
test_flat_mapFunction · 0.45
test_map_batchesFunction · 0.45
test_filterFunction · 0.45
fFunction · 0.45
plan_all_to_all_opFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 10

checkFunction · 0.36
test_context_inheritanceFunction · 0.36
read_fnMethod · 0.36
test_mapFunction · 0.36
test_flat_mapFunction · 0.36
test_map_batchesFunction · 0.36
test_filterFunction · 0.36
fFunction · 0.36