ouster.sdk.util.metadata module
Miscellaneous utilites.
- resolve_metadata(data_path, meta_path=None)[source]
Look for a metadata file based on the data path if needed.
Convenient to use in CLI tools when –meta param can be omitted in lots of trivial cases when pcap filename has the same prefix as the metadata json filename.
- Parameters:
data_path (
str) – filename location with the data, usually .pcap or .bag that is used to search metadata with the most common prefix filemeta_path (
Optional[str]) – the pass through metadata path, if set guessing and search for other metadata jsons is skipped
- Return type:
Optional[str]- Returns:
metadata json paths guessed with the most common prefix match or passed through from meta_path parameter