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

Consolidate validation of expected_groups #193

Merged
merged 4 commits into from
Nov 28, 2022
Merged

Conversation

dcherian
Copy link
Collaborator

@dcherian dcherian commented Nov 27, 2022

xref #191


if nby > 1 and not isinstance(expected_groups, tuple): # TODO: test for list
raise ValueError(
"When grouping by multiple variables, expected_groups must be a tuple "
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@keewis how is this for a better error message ;) ?

flox/core.py Outdated Show resolved Hide resolved
flox/core.py Outdated Show resolved Hide resolved
flox/xarray.py Outdated Show resolved Hide resolved
@dcherian dcherian enabled auto-merge (squash) November 28, 2022 20:48
@dcherian dcherian merged commit 8ec0617 into main Nov 28, 2022
@dcherian dcherian deleted the check-expect-group branch November 28, 2022 20:51
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