(ray_start_regular_shared, tmp_path)
| 107 | |
| 108 | |
| 109 | def test_numpy_write(ray_start_regular_shared, tmp_path): |
| 110 | ds = ray.data.range_tensor(1) |
| 111 | |
| 112 | ds.write_numpy(tmp_path, column="data") |
| 113 | |
| 114 | actual_array = np.concatenate( |
| 115 | [np.load(os.path.join(tmp_path, filename)) for filename in os.listdir(tmp_path)] |
| 116 | ) |
| 117 | assert actual_array == np.array((0,)) |
| 118 | |
| 119 | |
| 120 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected
searching dependent graphs…