Uh oh!
There was an error while loading. Please reload this page.
Kwargs to rasterio open - #5609
Conversation
Hello @pkopparla! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-07-27 09:23:27 UTC |
dcherian
left a comment
There was a problem hiding this comment.
Thanks @pkopparla This looks very nice.
I too am not sure what a test would look like> Perhaps @scottyhq or @snowman2 have ideas,
Uh oh!
There was an error while loading. Please reload this page.
max-sixty
commented
Jul 15, 2021
Should this pass |
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
I am not sure about the nuances here, but the linked issue shows a h5netcdf function that follows the same pattern. |
keewis
commented
Jul 15, 2021
I would try to stay as close to |
dcherian
commented
Jul 15, 2021
|
keewis
commented
Jul 15, 2021
right, it seems it's both |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: keewis <keewis@users.noreply.github.com>
pkopparla
commented
Jul 16, 2021
Thanks everyone for the feedback. I've added a |
pkopparla
commented
Jul 16, 2021
Looks like the |
keewis
left a comment
There was a problem hiding this comment.
Should I just get rid of it and leave in
**kwargs?
probably. @aurghs, @alexamici, it would be good to hear your thoughts on this if you have the time.
Uh oh!
There was an error while loading. Please reload this page.
Update to latest xarray repo
Updating to latest xarray repo
pkopparla
commented
Jul 27, 2021
keewis
commented
Jul 27, 2021
this has been fixed / worked around on |
@keewis thanks! Looks like most checks are successful now. Is there anything further I should do? Should I close the pull request? |
keewis
commented
Jul 27, 2021
no, this is fine, and the PR looks good to me. I'd say let's wait one more day to give more time for reviews and then merge by tomorrow. |
The idea was to deprecate in the future |
keewis
left a comment
There was a problem hiding this comment.
makes sense. @pkopparla, could you remove backend_kwargs?
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: keewis <keewis@users.noreply.github.com>
pkopparla
commented
Jul 27, 2021
@keewis Done! |
keewis
commented
Jul 27, 2021
thanks for the update, @pkopparla. I'll merge this tomorrow if there are no further comments. |
keewis
commented
Jul 30, 2021
Thanks, @pkopparla. I also noticed this is your first PR here. Welcome to |
pkopparla
commented
Jul 30, 2021
Thanks for leading me through the process @keewis , it's my first code contribution to any open-source project. Hope to do more in the future. |
* main: (31 commits) Refactor index vs. coordinate variable(s) (pydata#5636) pre-commit: autoupdate hook versions (pydata#5685) Flexible Indexes: Avoid len(index) in map_blocks (pydata#5670) Speed up _mapping_repr (pydata#5661) update the link to `scipy`'s intersphinx file (pydata#5665) Bump styfle/cancel-workflow-action from 0.9.0 to 0.9.1 (pydata#5663) pre-commit: autoupdate hook versions (pydata#5660) fix the binder environment (pydata#5650) Update api.rst (pydata#5639) Kwargs to rasterio open (pydata#5609) Bump codecov/codecov-action from 1 to 2.0.2 (pydata#5633) new blank whats-new for v0.19.1 v0.19.0 release notes (pydata#5632) remove deprecations scheduled for 0.19 (pydata#5630) Make typing-extensions optional (pydata#5624) Plots get labels from pint arrays (pydata#5561) Add to_numpy() and as_numpy() methods (pydata#5568) pin fsspec (pydata#5627) pre-commit: autoupdate hook versions (pydata#5617) Add dataarray scatter with 3d support (pydata#4909) ...
* upstream/main: (31 commits) Refactor index vs. coordinate variable(s) (pydata#5636) pre-commit: autoupdate hook versions (pydata#5685) Flexible Indexes: Avoid len(index) in map_blocks (pydata#5670) Speed up _mapping_repr (pydata#5661) update the link to `scipy`'s intersphinx file (pydata#5665) Bump styfle/cancel-workflow-action from 0.9.0 to 0.9.1 (pydata#5663) pre-commit: autoupdate hook versions (pydata#5660) fix the binder environment (pydata#5650) Update api.rst (pydata#5639) Kwargs to rasterio open (pydata#5609) Bump codecov/codecov-action from 1 to 2.0.2 (pydata#5633) new blank whats-new for v0.19.1 v0.19.0 release notes (pydata#5632) remove deprecations scheduled for 0.19 (pydata#5630) Make typing-extensions optional (pydata#5624) Plots get labels from pint arrays (pydata#5561) Add to_numpy() and as_numpy() methods (pydata#5568) pin fsspec (pydata#5627) pre-commit: autoupdate hook versions (pydata#5617) Add dataarray scatter with 3d support (pydata#4909) ...
* upstream/main: (34 commits) Use same bool validator as other inputs (pydata#5703) conditionally disable bottleneck (pydata#5560) Refactor index vs. coordinate variable(s) (pydata#5636) pre-commit: autoupdate hook versions (pydata#5685) Flexible Indexes: Avoid len(index) in map_blocks (pydata#5670) Speed up _mapping_repr (pydata#5661) update the link to `scipy`'s intersphinx file (pydata#5665) Bump styfle/cancel-workflow-action from 0.9.0 to 0.9.1 (pydata#5663) pre-commit: autoupdate hook versions (pydata#5660) fix the binder environment (pydata#5650) Update api.rst (pydata#5639) Kwargs to rasterio open (pydata#5609) Bump codecov/codecov-action from 1 to 2.0.2 (pydata#5633) new blank whats-new for v0.19.1 v0.19.0 release notes (pydata#5632) remove deprecations scheduled for 0.19 (pydata#5630) Make typing-extensions optional (pydata#5624) Plots get labels from pint arrays (pydata#5561) Add to_numpy() and as_numpy() methods (pydata#5568) pin fsspec (pydata#5627) ...
* upstream/main: (307 commits) Use same bool validator as other inputs (pydata#5703) conditionally disable bottleneck (pydata#5560) Refactor index vs. coordinate variable(s) (pydata#5636) pre-commit: autoupdate hook versions (pydata#5685) Flexible Indexes: Avoid len(index) in map_blocks (pydata#5670) Speed up _mapping_repr (pydata#5661) update the link to `scipy`'s intersphinx file (pydata#5665) Bump styfle/cancel-workflow-action from 0.9.0 to 0.9.1 (pydata#5663) pre-commit: autoupdate hook versions (pydata#5660) fix the binder environment (pydata#5650) Update api.rst (pydata#5639) Kwargs to rasterio open (pydata#5609) Bump codecov/codecov-action from 1 to 2.0.2 (pydata#5633) new blank whats-new for v0.19.1 v0.19.0 release notes (pydata#5632) remove deprecations scheduled for 0.19 (pydata#5630) Make typing-extensions optional (pydata#5624) Plots get labels from pint arrays (pydata#5561) Add to_numpy() and as_numpy() methods (pydata#5568) pin fsspec (pydata#5627) ...
whats-new.rstI've added a new
kwargsargument to the functionxarray.open_rasteriounderxarray/xarray/backends/rasterio_.pywhich is passed on to therasterio.openfunction as dicussed under issue #3269. I've added a line describing this change inwhats-new.rstI'm new to open source contributing, tried to follow instructions as much as I could. I am not sure how to write tests for this, would appreciate any help on that.
cheers,
Pushkar