Open jhamman opened 4 months ago
I think that's because we're trying to see if we have a cached version of the OpenDAP-ed dataset kicking around, and that function takes the dataset_id
.
We could probably convert that signature to
def get_dap_dataset(
dataset_id: str = "default",
ds: xr.Dataset = Depends(deps.dataset),
cache: cachey.Cache = Depends(deps.cache),
) -> dap.Dataset:
To support SingleDatasetRest
usage.
I expected the following to work:
This does successfully start up an Xpublish server, however, accessing the openap endpoint fails with the following error.
The missing
dataset_id
seems important.BTW, changing the above example to use the standard
Rest
class does work: