-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Enhancement]: Slightly more flexible API for add_missing_bounds #666
Comments
I like this idea! |
Sounds good to me. These APIs also need to be updated:
|
Hi @tomvothecoder – I'm not opposed to updating the API in these places, but does it need to be updated there? When opening a dataset it kind of makes sense to pass in a list for most use cases (make sure this has time/lat/lon bounds no matter what...). A lot of times when you |
That's true. I was thinking of consistency across APIs but the use cases aren't exactly the same. We can keep those APIs as is. |
This is currently working on 0.7.1 (even though the function signature documents an argument of form An example (that works):
|
The for loop below is supposed to loop over a list of strings. However, if we pass a single string, it'll loop over each character of the string. In your case you pass a single character string (e.g., "T") which means the for-loop behaves correctly (unintentionally). Lines 166 to 170 in 7751452
We should do the following:
|
Is your feature request related to a problem?
This is a convenience request. I almost always need to add missing bounds for one axis, but the (updated?) API wants a list.
Describe the solution you'd like
I'd like the API to accept a list or string (e.g.,
["X", "Y"]
or simplyT
).Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: