-
Notifications
You must be signed in to change notification settings - Fork 9
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
Decrease warning levels #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, but I would really like to clean up the warning level so that it is not a global variable. Can we fit that in here?
We should also confirm what happens for cubic interpolations when there are 2 or 3 grid axis values.
Do you mean the |
Yeah, that's the one. I think we can come up with a better design. |
As suspected, the cubic interpolation on axes that contain 2 or 3 values just fixes the underspecified point at the same value as the existing endpoint on the relevant side. In other words, if an interpolation happens between index 0 and index 1, the relative coordinates of all the points involved for cubic spline fitting are [-1, 0, 1, 2]. If either points (-1) or (2) are missing, they are fixed to be the same as points (0) or (1) respectively, here. It's currently already tested as well, though I haven't re-hand-calculated this to confirm it's right. |
As for LOG_LEVEL, its entire existence feels superfluous to me - it adds unnecessary complexity to what should be handled straight up by an error callback. |
@tanaya-bigladder do we want to work on this, or just follow up with the callback change? |
@nealkruis yes, let's punt. I discovered yesterday that it's a can of worms that will be best with some serious refactoring. I know what we should do but we ought to discuss first. |
Change WARN to INFO for issues that are handled internally and likely to be expected by the user.