You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code returns the correct output (arrays of dims [[]]) but throws a deprecation warning:
trf.transform(np.array([[1]]), np.array([[1]]))
File "/Users/uu23343/.mambaforge/envs/salem_env_202407/lib/python3.12/site-packages/pyproj/transformer.py", line 820, in transform
return self._transformer._transform_point(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyproj/_transformer.pyx", line 762, in pyproj._transformer._Transformer._transform_point
DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
Expected Output
This should not send a deprecation I think? I don't want to turn this array into a scalar (and I'm not sure why pyproj does - perhaps for optimization?)
OK sorry I missed this. #1307 gives no context as to why numpy is raising this warning just for one version, but I did add a deprecation warning in our test suite for now...
Code Sample, a copy-pastable example if possible
Problem description
This code returns the correct output (arrays of dims [[]]) but throws a deprecation warning:
Expected Output
This should not send a deprecation I think? I don't want to turn this array into a scalar (and I'm not sure why pyproj does - perhaps for optimization?)
Environment Information
The text was updated successfully, but these errors were encountered: