Skip to content
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

Adds check to ensure consolidated=True is not passed to open_dataset #381

Closed

Conversation

norlandrhagen
Copy link
Contributor

@norlandrhagen norlandrhagen commented Oct 19, 2023

This pr is an tiny addition to #372 (comment).

@norlandrhagen norlandrhagen changed the title added check to ensure consolidated=True is not passed to open_dataset Adds check to ensure consolidated=True is not passed to open_dataset Oct 19, 2023
@@ -48,6 +48,12 @@ def open_reference_dataset(
if open_dataset_options is None:
open_dataset_options = {}

if open_dataset_options.get("consolidated"):
raise ValueError(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A warning would do? Without making this check, it only results in a warning from the zarr engine anyway I think. Note that parquet references do work as consolidated or not, it doesn't matter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good to know! Happy to close the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants