Extract subset of kwargs with common prefix
Definition at line 3 of file ActsUtilities.py.
5 **kwargs: dict) -> dict:
6 """ Extract subset of kwargs with common prefix """
7 assert isinstance(kwargs, dict)
8 assert isinstance(prefix, str)
11 for (k,v)
in kwargs.items():
12 if len(k) <= len(prefix):
14 if k[:len(prefix)] != prefix:
16 args[ k[len(prefix):] ] = v