MCPcopy Index your code
hub / github.com/pydata/xarray / make_datasets

Function make_datasets

xarray/tests/test_dataset.py:173–183  ·  view source on GitHub ↗
(data, data_to_append)

Source from the content-addressed store, hash-verified

171
172def create_append_string_length_mismatch_test_data(dtype) -> tuple[Dataset, Dataset]:
173 def make_datasets(data, data_to_append) -> tuple[Dataset, Dataset]:
174 ds = xr.Dataset(
175 {"temperature": (["time"], data)},
176 coords={"time": [0, 1, 2]},
177 )
178 ds_to_append = xr.Dataset(
179 {"temperature": (["time"], data_to_append)}, coords={"time": [0, 1, 2]}
180 )
181 assert_writeable(ds)
182 assert_writeable(ds_to_append)
183 return ds, ds_to_append
184
185 u2_strings = ["ab", "cd", "ef"]
186 u5_strings = ["abc", "def", "ghijk"]

Calls 1

assert_writeableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…