Fix unreachable code in projections/isea.
The internal helper function isea_hex() had an early unconditional return, which made most of the code in the function totally unreachable.
Based on the comments in the unreachable section, I speculate that the original author meant for this early return to occur for aperture values other than 3 or 4.
In passing, change the function's return type to void, since it was always returning 1 anyway and the return was not used (per #947), and clean up some rogue whitespace.
Fixes #423.
- [x] Closes #423
- [x] Fully documented, including updating
docs/source/*.rstfor new API
it would be nice to have test/gie/builtins.gie extended to test the fixed cases
it would be nice to have test/gie/builtins.gie extended to test the fixed cases
this point remains to be done
it would be nice to have test/gie/builtins.gie extended to test the fixed cases
this point remains to be done
I have added some tests on my branch that should exercise those code paths. I haven't independently confirmed the actual projection values are correct.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The PROJ project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last two months and is being automatically marked as "stale". If you think this pull request should be merged, please check
-
that all unit tests are passing
-
that all comments by reviewers have been addressed
-
that there is enough information for reviewers, in particular
-
link to any issues which this pull request fixes
-
add a description of workflows which this pull request fixes
-
add terminal output examples if applicable
-
-
that you have written unit tests where possible In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request. If there is no further activity on this pull request, it will be closed in a week.
While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 2 months. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the PROJ project can do to help push this PR forward please let us know how we can assist.