Deprecated methods when using Ubuntu 18.04 and Python 3.6.9
Here is a list of deprecated methods:
-
a)
/usr/local/python/.pyenv/versions/gts2_python_3.6.9/lib/python3.6/site-packages/sicor-0.14.2-py3.6.egg/sicor/AC/RtFo.py:1188: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
-
b)
/usr/local/python/.pyenv/versions/gts2_python_3.6.9/lib/python3.6/site-packages/sicor-0.14.2-py3.6.egg/sicor/sensors/S2MSI/GranuleDEM/GranuleDEM.py:104: H5pyDeprecationWarning: dataset.value has been deprecated. Use dataset[()] instead.
-
c)
/usr/local/python/.pyenv/versions/gts2_python_3.6.9/lib/python3.6/site-packages/sicor-0.14.2-py3.6.egg/sicor/Tools/linear_error_moddeling.py:92: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.
-
d)
/usr/local/python/.pyenv/versions/gts2_python_3.6.9/lib/python3.6/site-packages/sklearn/base.py:334: UserWarning: Trying to unpickle estimator DecisionTreeClassifier from version 0.18.1 when using version 0.23.1. This might lead to breaking code or invalid results. Use at your own risk.
-
e)
/usr/local/python/.pyenv/versions/gts2_python_3.6.9/lib/python3.6/site-packages/sklearn/utils/deprecation.py:143: FutureWarning: The sklearn.tree.tree module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.tree. Anything that cannot be imported from sklearn.tree is now part of the private API.
-
f)
/usr/local/python/.pyenv/versions/gts2_python_3.6.9/lib/python3.6/site-packages/sicor-0.14.2-py3.6.egg/sicor/Tools/linear_error_moddeling.py:79: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.
x = np.vstack((lambdify(args=vv, expr=arg, dummify=False)(**inp_deps) for arg in ff.args)).transpose()
-
g)
/usr/local/python/.pyenv/versions/gts2_python_3.6.9/lib/python3.6/site-packages/shapely/ops.py:237: DeprecationWarning: This function is deprecated. See: https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1
@nbohn Another two when using Python 3.7:
-
h)
/root/miniconda3/envs/ci_env/lib/python3.7/site-packages/sicor/Tools/cB/classical_bayesian.py:390: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
This also applies to sicor/AC/RtFo.py:1188
-
i)
/root/miniconda3/envs/ci_env/lib/python3.7/site-packages/sicor/Tools/cB/classical_bayesian.py:189: H5pyDeprecationWarning: dataset.value has been deprecated. Use dataset[()] instead.
-
j)
/root/miniconda3/envs/ci_env/lib/python3.7/site-packages/sicor/Tools/linear_error_moddeling.py:92: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.
lambdify(args=vv, expr=arg, dummify=False)(**inp_deps), dtype=dtype) for arg in ff.args)).transpose()
Edited by Romulo Pereira Goncalves