-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
[Feat] r.category: add color option #4071
Comments
I was trying to test the module using the doctest file of
However, I am getting test failures. Most of them look like this: Failed example:
run_command('r.mapcalc', expression='test = if(col() < 3, col(), 2)')
Expected:
0
Got nothing How should I fix this? Also, for this new color option, should I write a doctest or a separate unit test( |
This is probably an old doctest, run_command no longer returns returncode by default, but throws exception (the behavior can be changed )
I think a pytest like for r.colors.out maybe best. |
Color option - We should add a new option that outputs the category color. In any use case where the user wants to create a visualization they will want to know the category label and color.
Originally posted by @cwhite911 in #4018 (review)
The text was updated successfully, but these errors were encountered: