combine always == 'by_coords'
@@ -9,8 +9,7 @@ from pangeo_forge_recipes.utils import fix_scalar_attr_encoding
def test_fixture_local_files(daily_xarray_dataset, netcdf_paths):
paths = netcdf_paths[0]
paths = [str(path) for path in paths]
- combine = "nested" if len(netcdf_paths) == 2 else "by_coords"
- ds = xr.open_mfdataset(paths, combine=combine, concat_dim="time", engine="h5netcdf")
+ ds = xr.open_mfdataset(paths, combine="by_coords", concat_dim="time", engine="h5netcdf")
assert ds.identical(daily_xarray_dataset)
@@ -20,7 +19,6 @@ def test_fixture_http_files(daily_xarray_dataset, netcdf_http_paths):
if r.status_code == 400 or r.status_code == 401:
pytest.skip("Authentication and required query strings are tested in test_storage.py")
open_files = [fsspec.open(url).open() for url in urls]
- combine = "nested" if len(netcdf_http_paths) == 2 else "by_coords"
- ds = xr.open_mfdataset(open_files, combine=combine, concat_dim="time", engine="h5netcdf").load()
+ ds = xr.open_mfdataset(open_files, combine="by_coords", concat_dim="time", engine="h5netcdf").load()
ds = fix_scalar_attr_encoding(ds) # necessary?
assert ds.identical(daily_xarray_dataset)
