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

Method extract_timestamp

datasets/provider_davis.py:44–50  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

42 continue
43
44 def extract_timestamp(file_path):
45 base = osp.basename(file_path)
46 num_str = osp.splitext(base)[0]
47 try:
48 return float(num_str)
49 except ValueError:
50 return 0.0
51
52 image_files = sorted(image_files, key=lambda x: extract_timestamp(x))
53

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected