Skip to content

Conversation

@StonerLing
Copy link
Contributor

Limit floating-point default values in CLI display to 3 significant digits using StringPrintf("%.3g").

Example changes:

  • --Mapper.min_focal_length_ratio (=0.10000000000000001) -> --Mapper.min_focal_length_ratio (=0.1)
  • --Mapper.init_max_forward_motion (=0.94999999999999996) -> --Mapper.init_max_forward_motion (=0.95)
  • --SiftExtraction.dsp_min_scale arg (=0.16666666666666666) -> --SiftExtraction.dsp_min_scale arg (=0.167)
  • --Example.large_number arg (=500000) -> --Example.large_number arg (=5e+05)
  • --Example.small_number arg (=0.00005) -> --Example.small_number arg (=5e-05)

@ahojnnes
Copy link
Contributor

Thank you!

@ahojnnes ahojnnes enabled auto-merge (squash) August 19, 2025 06:44
@ahojnnes ahojnnes merged commit 4178a22 into colmap:main Aug 19, 2025
13 checks passed
@StonerLing StonerLing deleted the refactor/cli-float-display branch August 19, 2025 07:58
tavislocus pushed a commit to tavislocus/colmap_6dof that referenced this pull request Aug 19, 2025
…#3579)

Limit floating-point default values in CLI display to 3 significant
digits using StringPrintf("%.3g").

Example changes:  
- `--Mapper.min_focal_length_ratio (=0.10000000000000001)` ->
`--Mapper.min_focal_length_ratio (=0.1) `
- `--Mapper.init_max_forward_motion (=0.94999999999999996)` ->
`--Mapper.init_max_forward_motion (=0.95) `
- `--SiftExtraction.dsp_min_scale arg (=0.16666666666666666)` ->
`--SiftExtraction.dsp_min_scale arg (=0.167)`
- `--Example.large_number arg (=500000)` -> `--Example.large_number arg
(=5e+05)`
- `--Example.small_number arg (=0.00005)` -> `--Example.small_number arg
(=5e-05)`

Co-authored-by: StonerLing <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants