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

only print xarray note if self.verbose=True #228

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

joshuaeh
Copy link
Contributor

In the xarray function in core.py, if there is more than one hypercube returned by the query, a note will always be printed: f"Note: Returning a list of [{len(Hxr)}] xarray.Datasets because cfgrib opened with multiple hypercubes.".

This commit changes this behavior to only print the note if self.verbose is True.

@blaylockbk blaylockbk merged commit 6f40ec6 into blaylockbk:main Sep 20, 2023
8 checks passed
@blaylockbk
Copy link
Owner

Looks great! Thanks for adding this.

@joshuaeh joshuaeh deleted the verbose_xarray branch November 29, 2023 05:52
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.

None yet

2 participants