diff --git a/environment.yml b/environment.yml index 190b27ae2..f12041518 100644 --- a/environment.yml +++ b/environment.yml @@ -4,7 +4,7 @@ name: plantcv dependencies: - python=3.13 - matplotlib>=1.5 - - numpy>=2 + - numpy>=1.26 - pandas - python-dateutil - scipy<1.16 @@ -23,7 +23,7 @@ dependencies: - ipympl - nodejs - jupyterlab - - altair + - altair<6 - vl-convert-python - git - flyr diff --git a/plantcv/plantcv/threshold/threshold_methods.py b/plantcv/plantcv/threshold/threshold_methods.py index 62ff850ef..29b32d0e9 100644 --- a/plantcv/plantcv/threshold/threshold_methods.py +++ b/plantcv/plantcv/threshold/threshold_methods.py @@ -323,7 +323,7 @@ def calc_texture(inputs): float Texture value """ - inputs = np.reshape(inputs, newshape=[ksize, ksize]) + inputs = np.reshape(inputs, (ksize, ksize)) inputs = inputs.astype(np.uint8) # Greycomatrix takes image, distance offset, angles (in radians), symmetric, and normed # http://scikit-image.org/docs/dev/api/skimage.feature.html#skimage.feature.graycomatrix diff --git a/pyproject.toml b/pyproject.toml index 7a582ba97..9441bc3db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ license = {file = "LICENSE"} dynamic = ["version"] dependencies = [ "matplotlib >= 1.5", - "numpy >= 2", + "numpy >= 1.26", "pandas", "python-dateutil", "scipy <1.16",