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

Function _get_exported_data

python/ray/data/tests/test_operator_schema_export.py:15–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def _get_exported_data():
16 exported_file = os.path.join(
17 ray._private.worker._global_node.get_session_dir_path(),
18 "logs",
19 "export_events",
20 "event_EXPORT_DATASET_OPERATOR_SCHEMA.log",
21 )
22 assert os.path.isfile(exported_file)
23
24 with open(exported_file, "r") as f:
25 data = f.readlines()
26
27 return [json.loads(line) for line in data]
28
29
30def test_export_operator_schema():

Callers 1

Calls 3

openFunction · 0.85
get_session_dir_pathMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…