Skip to content

Error instead of warn with wrong argument capturing the size of the grid #368

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

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

hfrick
Copy link
Member

@hfrick hfrick commented Jan 29, 2025

closes #364

I went with throwing an error instead of a warning because it seemed sufficiently important to really know when your grid wouldn't be the size you expected. My only reason not to do it would be if you anticipate this causing (too) big of a headache in a tune context.

Revdep checks are fine and extratests seem fine as well.

@hfrick
Copy link
Member Author

hfrick commented Jan 29, 2025

Note to self: update NEWS

@hfrick hfrick requested a review from simonpcouch January 29, 2025 16:41
Copy link
Contributor

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

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

I think this is a good move! Not seeing any issues testing tune locally with this PR installed, so shouldn't introduce hiccups with your release. If this warning had cropped up anywhere in our codebases and had been ignored, I'm glad we're forced to now address it.

+1 to NEWS update. :)

@hfrick hfrick merged commit af64759 into main Jan 29, 2025
12 checks passed
@hfrick hfrick deleted the args-level-vs-size branch January 29, 2025 17:40
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.

Warn or error on wrong size/levels arg to grid functions?
2 participants