utilities.laltools module¶
This module contains miscellaneous utilities for working with LAL data structures and api
- utilities.laltools.create_cache(entries: Iterable[Union[str, Path, CacheEntry]], cache_path: Optional[Union[str, Path]] = None, use_os_tmpdir: bool = True) Path [source]¶
Create a LAL cache file from an iterable of entries
- Args:
- entries:
Iterable of either str, Path, or CacheEntry. If str or Path, a CacheEntry will be created using CacheEntry.from_T050017
cache_path: use_os_tmpdir:
bool, if True use ‘TMPDIR’ env variable else create a tmp directory using tempfile.TemporaryDirectory. Only applies if cache_path argument is None.
- Returns:
pathlib.Path, the path to the cache file