Skip to content

Test for r.geomorphon fails due to optional with default confusion #2029

@wenzeslaus

Description

@wenzeslaus

Test fails with option <profiledata> requires <coordinates> because there is confusion about optional parameters with default values. This seems to be more an issue with to pygrass and GUI than with r.geomorphon or parser according to analysis by @infrastation and others.

History (in r.info) and pygrass Module fill in the defaults (so profiledata="-" profileformat="json" is put there). However, when such command is executed, it fails with:

ERROR: Option <profiledata> requires <coordinates>
ERROR: Option <profileformat> requires <coordinates>

This happened only after I suggested to @infrastation to use the automated check declaration instead of a manual checks. For r.geomorphon, the solution is either going back to the manual check or not providing defaults which may actually make sense in this case. However, it seems that the issue is in pygrass and the same issue happens to be in GUI too. Maybe the parser can be modified because the defaults are sometimes recorded even when not used (for history), but it seems to me now that the first issue is that the Python code (both GUI and independently pygrass) is mishandling the defaults.

Originally posted by @wenzeslaus in #1157 (comment). See also the following comments there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions