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

Whitebox 2.3.3 (Python): Unrecognized tool name ConditionalEvaluation #67

Closed
geotom opened this issue May 28, 2024 · 3 comments
Closed

Comments

@geotom
Copy link

geotom commented May 28, 2024

  • whitebox version:
  • Python version: 2.3.3
  • Operating System: Unix

This was first posted on the whitebox tracker (jblindsay/whitebox-tools#411)

Description

I noticed that since the recent release 2.3.3 on PyPi (https://pypi.org/project/whitebox/2.3.3/) a script of mine fails with the following whitebox debug logs

./whitebox_tools --run="ConditionalEvaluation" --wd="/celery" --input='a.tif' --statement=value == minvalue && value < -1000 - -true='b.tif' -v --compress_rasters=True
thread 'main' panicked at whitebox-tools-app/src/main.rs:72:21:
Unrecognized tool name ConditionalEvaluation.
run with `RUST_BACKTRACE=1` environment variable to display a backtrace

What I Did

The code has not changed and calls this function as follows:

wbt.conditional_evaluation(
                                "a.tif",
                                "b.tif",
                                statement="value == minvalue && value < -1000",
                                true="source.tif",
                                false="a.tif",
                            )

What could the issue be?

@giswqs
Copy link
Member

giswqs commented May 28, 2024

I can confirm that this is a WBT backend issue.

image

@giswqs giswqs closed this as completed May 28, 2024
@giswqs giswqs reopened this May 28, 2024
@giswqs
Copy link
Member

giswqs commented May 29, 2024

I fount that both the ConditionalEvaluation and ConditionedLatinHypercube tools have the same issue. It seems the tools with the word Condition have this problem. Other tools are fine.

@giswqs
Copy link
Member

giswqs commented May 29, 2024

This bug has been fixed. Please update to the latest v2.3.4

image

@giswqs giswqs closed this as completed May 29, 2024
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

No branches or pull requests

2 participants