beamlime.constructors.providers.split_dict_by_filter#

beamlime.constructors.providers.split_dict_by_filter(filter_func, sequence)[source]#

Split a dictionary into two dictionaries based on the filter.

The first one of returned dictionaries contains items that pass the filter. The other dictionary contains the rest.

Return type:

tuple[dict[TypeVar(_Key), TypeVar(_Value)], dict[TypeVar(_Key), TypeVar(_Value)]]