generated from ioos/ioos-python-package-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compatibility with SingleDatasetRest #69
Comments
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 xpublish-opendap/xpublish_opendap/plugin.py Lines 45 to 61 in adf376f
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 |
abkfenris
added a commit
that referenced
this issue
Jul 24, 2024
Adds support for the `SingleDatasetRest` pattern by making the `dataset_id` arugment to the cache have a default value (of 'default'), in case there is not a `dataset_id` in the path. Closes #69
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:The text was updated successfully, but these errors were encountered: