dataFetcher
- class dataFetcher.RetryingHTTPDownloader(attempts: int = 2, retry_wait: int = 5, timeout: int = 30, progressbar: bool = False, sleep: ~typing.Callable[[int], None] = <built-in function sleep>, downloader_factory: ~typing.Callable[[...], ~pooch.downloaders.HTTPDownloader] = <class 'pooch.downloaders.HTTPDownloader'>, backup_urls_for: ~typing.Callable[[str], ~typing.Sequence[str]] = <function _external_backup_urls_for>)[source]
Bases:
objectRetry transient HTTP failures and fall back to mirrored support data.
- dataFetcher.fetch_support_data(rel: str, progressbar: bool = False) str[source]
Fetch a support data file using retry-hardened HTTP downloads.
- dataFetcher.find_local_support_data() Path | None[source]
Return the path to the local
supportDatadirectory if running from a cloned repo, otherwise returnNone.Works whether running from source (src/) or from built modules (dist3/Basilisk/).
- dataFetcher.get_path(file_enum: Enum) Path[source]
Return a filesystem path for the requested supportData file.
If running from a local Basilisk repo, the file is returned directly from
supportData/. Otherwise, it is fetched or retrieved from the Pooch cache.