MCPcopy
hub / github.com/uber/petastorm / normalize_dataset_url_or_urls

Function normalize_dataset_url_or_urls

petastorm/reader.py:51–57  ·  view source on GitHub ↗
(dataset_url_or_urls)

Source from the content-addressed store, hash-verified

49
50
51def normalize_dataset_url_or_urls(dataset_url_or_urls):
52 if isinstance(dataset_url_or_urls, list):
53 if not dataset_url_or_urls:
54 raise ValueError('dataset url list must be non-empty.')
55 return [normalize_dir_url(url) for url in dataset_url_or_urls]
56 else:
57 return normalize_dir_url(dataset_url_or_urls)
58
59
60def make_reader(dataset_url,

Callers 2

make_readerFunction · 0.85
make_batch_readerFunction · 0.85

Calls 1

normalize_dir_urlFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…