From 0f2b769eab131bd932310c4ace38c51181a1a884 Mon Sep 17 00:00:00 2001 From: Chris Mutel Date: Tue, 4 Jun 2024 18:05:45 +0200 Subject: [PATCH] Allow `MappedMatrixDict` to take extra `kwargs` --- matrix_utils/mapped_matrix_dict.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix_utils/mapped_matrix_dict.py b/matrix_utils/mapped_matrix_dict.py index 002b904..1ada020 100644 --- a/matrix_utils/mapped_matrix_dict.py +++ b/matrix_utils/mapped_matrix_dict.py @@ -51,6 +51,7 @@ def __init__( empty_ok: bool = False, sequential: bool = False, matrix_class: Type[MappedMatrix] = MappedMatrix, + **kwargs, ): """A thin wrapper around a dict of `MappedMatrix` objects. See its docstring for details on `custom_filter` and `indexer_override`. @@ -143,6 +144,7 @@ def __init__( transpose=transpose, custom_filter=custom_filter, empty_ok=empty_ok, + **kwargs, ) for key, packages in packages.items() }