Skip to content

deprecate method keyword #385

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mathause
Copy link
Member

This

  • deprecates the method keyword from the mask* methods
  • adds the backend setting in regionmask.set_options
  • renames "rasterize" to "rasterio".

As always I am a bit unsure if this is a good idea. Maybe I am just so used to the way it is done. The reason I want to do is that (i) to hide the keyword (ii) the name method is misleading. The good thing is that this should barely affect anyone as there is no reason to set method="..." (except for testing and rare cases). So I'll mark this as draft and let it sit for some days to get used to it.

@codecov-commenter
Copy link

codecov-commenter commented Sep 12, 2022

Codecov Report

Merging #385 (221656e) into main (c79e412) will decrease coverage by 0.48%.
The diff coverage is 83.78%.

❗ Current head 221656e differs from pull request most recent head 31abddd. Consider uploading reports for the commit 31abddd to get more accurate results

@@            Coverage Diff             @@
##             main     #385      +/-   ##
==========================================
- Coverage   98.73%   98.24%   -0.49%     
==========================================
  Files          16       17       +1     
  Lines        1423     1427       +4     
==========================================
- Hits         1405     1402       -3     
- Misses         18       25       +7     
Flag Coverage Δ
bare-minimum 91.51% <83.78%> (+1.03%) ⬆️
min-all-deps 97.48% <83.78%> (+0.94%) ⬆️
shapely-2 ?
unittests 98.24% <83.78%> (-0.49%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
regionmask/core/options.py 78.57% <28.57%> (-12.34%) ⬇️
regionmask/core/mask.py 99.68% <96.66%> (-0.32%) ⬇️
regionmask/core/regions.py 97.53% <0.00%> (ø)
regionmask/__init__.py 85.71% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

This was referenced May 30, 2023
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.

rename method keyword in mask to backend or engine?
2 participants