Opened 9 years ago
Last modified 5 years ago
#2914 new defect
i.segment.hierarchical: the outputs_prefix option should not require formatting string
Reported by: | mlennert | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.3 |
Component: | Addons | Version: | unspecified |
Keywords: | i.segment.hierarchical output prefix | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
In i.segment.hierarchical, the outputs_prefix is defined as
outputs_prefix=string Name for output raster maps from segment Default: seg__%.2f
The way this parameter is used in the code, it requires a formatting string as present in the default. However, this is not clearly documented (except implicitly through the default value), and IMHO shouldn't be required. The formatting information should be added in the code, not by the user as is usual custom in GRASS modules.
I'll attach a patch shows a possible solution, but I'll wait for Pietro to comment on that before committing.
Attachments (1)
Change History (8)
by , 9 years ago
Attachment: | i_segment_hierarchical_outputsprefix.diff added |
---|
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Milestone: | 7.0.4 → 7.0.5 |
---|
comment:3 by , 8 years ago
Milestone: | 7.0.5 → 7.0.6 |
---|
comment:4 by , 7 years ago
Milestone: | 7.0.6 → 7.0.7 |
---|
comment:7 by , 5 years ago
Milestone: | → 7.8.3 |
---|
Note:
See TracTickets
for help on using tickets.
Replying to mlennert:
Formatting strings are much more flexible but I agree that it is unusual, so please apply your changes.