neu_morpho.allowlist

Body allowlist handling.

Process only the given body IDs, or all labels when no allowlist is given.

Functions

load_allowlist(source) → set[int] | None

Return a set of allowed body IDs, or None meaning "all labels".

Module Contents

neu_morpho.allowlist.load_allowlist(source: str | Iterable[int] | None) → set[int] | None

Return a set of allowed body IDs, or None meaning “all labels”.

source may be a path to a text/CSV file (one integer id per line, or a single id column), an iterable of ids, or None.