techmatters / soil-id-algorithm

GNU Affero General Public License v3.0
1 stars 0 forks source link

Warning: Conversion of an array with ndim > 0 to a scalar is deprecated #124

Open paulschreiber opened 4 months ago

paulschreiber commented 4 months ago

Description

Fix the code causing this warning

  /Users/paul/.dev/soil-id-algorithm/env/lib/python3.12/site-packages/pyproj/transformer.py:820: 
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.)
    return self._transformer._transform_point(