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

osgeo_utils/auxiliary/arrays.py - add ArrayLike, ScalarLike, ArrayOrScalarLike types #3780

Closed
wants to merge 1 commit into from

Conversation

idanmiara
Copy link
Collaborator

@idanmiara idanmiara commented May 2, 2021

What does this PR do?

osr_util.py depends on numpy. this PR remove this dependency.

osgeo_utils/auxiliary/arrays.py - add ArrayLike, ScalarLike, ArrayOrScalarLike types (to be used instead of NumpyCompatibleArray, NumpyCompatibleArrayOrReal)

osr_util.py, gdallocationinfo.py, numpy_util.py - use new types
autotest/pyscripts/test_gdal_utils.py - test new types

Related PR

python/typing#593

…ayLike, ScalarLike, ArrayOrScalarLike types (to be used instead of NumpyCompatibleArray, NumpyCompatibleArrayOrReal), removes numpy dependency

osr_util.py, gdallocationinfo.py, numpy_util.py - use new types
autotest/pyscripts/test_gdal_utils.py - test new types
@idanmiara idanmiara changed the title osgeo_utils/auxiliary/arrays.py - add ArrayLike, ScalarLike, ArrayOrScalarLike` types osgeo_utils/auxiliary/arrays.py - add ArrayLike, ScalarLike, ArrayOrScalarLike types May 2, 2021
@idanmiara
Copy link
Collaborator Author

@rouault I'm not sure if this kind of fix qualifies for backporting.

@idanmiara
Copy link
Collaborator Author

this PR was merged into #3778

@idanmiara idanmiara closed this May 3, 2021
@idanmiara idanmiara deleted the arraylike branch May 11, 2021 20:35
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.

1 participant