Module epiclass.utils.general_utility

For lost little functions that don't fit anywhere else.

Functions

def get_valid_filename(name: str)

Tranform a string into a valid filename.

def read_paths(list_path: Path) ‑> List[pathlib.Path]

Read a list of paths from a file.

def write_hdf5_paths_to_file(md5s: Iterable[str], parent: str, suffix: str, filepath: str | Path)

Write a list of md5s to a file, with a prefix and suffix. Creates files of the format: Path(prefix=parent)/{md5}_{suffix}.hdf5

Returns a list of the paths written to the file.

def write_md5s_to_file(md5s: Iterable[str], logdir: str | Path, name: str)

Write a list of md5s to a file. Return filepath.