MCPcopy Create free account
hub / github.com/JeremyBYU/polylidar / convert

Function convert

examples/python/util/realsense_util.py:45–45  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

43# Some of this code is pulled from Open3D to read saved RGBD Files
44def sorted_alphanum(file_list_ordered):
45 def convert(text): return int(text) if text.isdigit() else text
46 def alphanum_key(key): return [convert(c)
47 for c in re.split('([0-9]+)', key)]
48 return sorted(file_list_ordered, key=alphanum_key)

Callers 1

alphanum_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected