Skip to content
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

Deprecate AreaDefinition 'rotation' argument #496

Merged
merged 3 commits into from
Feb 13, 2023

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Jan 31, 2023

After talking with @loreclem on slack, we decided that it should be OK to deprecate the functionality added by him via the rotation keyword argument in the AreaDefinition. As far as I know this functionality was not used by anyone (even Lorenzo doesn't use it anymore) and should be replaced by parameters to the CRS (projection) being defined for the area. Overall, I wanted to remove this to cleanup code that was/is likely not being used by anyone and only makes the code harder to maintain.

Note: This PR is based on #464 so it has a lot of commits and changes that will go away when that PR is merged.

  • Closes #xxxx
  • Tests added
  • Tests passed
  • Passes git diff origin/main **/*py | flake8 --diff
  • Fully documented

@djhoese djhoese added enhancement backwards-incompatibility Causes backwards incompatibility or introduces a deprecation labels Jan 31, 2023
@djhoese djhoese requested a review from mraspaud January 31, 2023 21:30
@djhoese djhoese self-assigned this Jan 31, 2023
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #496 (347019d) into main (f770984) will increase coverage by 0.32%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #496      +/-   ##
==========================================
+ Coverage   93.94%   94.27%   +0.32%     
==========================================
  Files          78       78              
  Lines       12920    12838      -82     
==========================================
- Hits        12138    12103      -35     
+ Misses        782      735      -47     
Flag Coverage Δ
unittests 94.27% <100.00%> (+0.32%) ⬆️

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

Impacted Files Coverage Δ
pyresample/test/test_geometry/test_area.py 99.18% <ø> (ø)
pyresample/test/test_geometry_legacy.py 97.64% <ø> (-0.16%) ⬇️
pyresample/test/test_utils.py 100.00% <ø> (ø)
pyresample/area_config.py 90.44% <100.00%> (-0.21%) ⬇️
pyresample/geometry.py 87.55% <100.00%> (+0.09%) ⬆️
pyresample/_spatial_mp.py 82.94% <0.00%> (+17.05%) ⬆️
pyresample/_multi_proc.py 83.01% <0.00%> (+39.62%) ⬆️

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

@coveralls
Copy link

coveralls commented Jan 31, 2023

Coverage Status

Coverage: 93.795% (-0.008%) from 93.803% when pulling 347019d on djhoese:deprecate-area-rotation into f76d5a1 on pytroll:main.

@djhoese djhoese merged commit 6ff3568 into pytroll:main Feb 13, 2023
@djhoese djhoese deleted the deprecate-area-rotation branch February 13, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards-incompatibility Causes backwards incompatibility or introduces a deprecation enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants