MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / extract_timestamp

Method extract_timestamp

preprocess_depth_davis.py:71–77  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

69 continue
70
71 def extract_timestamp(file_path):
72 base = osp.basename(file_path)
73 num_str = osp.splitext(base)[0]
74 try:
75 return float(num_str)
76 except ValueError:
77 return 0.0
78
79 image_files = sorted(image_files, key=lambda x: extract_timestamp(x))
80

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected