Skip to content

res2display() order cap still wrong above order 20 — carry-forward from #88 — PR #76 #99

Description

@espg

mortie/tools.py::res2display() still loops for res in range(20), so it silently returns nothing for any order above 19 even though the packed-u64 kernel supports order 29.

...it would be ideal if this had some checking added to format the floating point sensibly, especially when it drops below 1.0 ; i.e.,

1.5889124267578125 km at tessellation order 12  # this should truncate down to 1.589 km
0.7944562133789063 km at tessellation order 13 # this should return meters, i.e., 794.456 m

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions