From 1914f3414b1a91523bf561f2a267ff1f210d2864 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 8 Dec 2023 08:17:52 +0000 Subject: [PATCH] Scheduler: Only support new-style dict-based configurations --- loki/bulk/configure.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/loki/bulk/configure.py b/loki/bulk/configure.py index 2a06aff88..45752a267 100644 --- a/loki/bulk/configure.py +++ b/loki/bulk/configure.py @@ -49,15 +49,8 @@ def __init__( self.dimensions = dimensions self.enable_imports = enable_imports - if isinstance(routines, dict): - self.routines = CaseInsensitiveDict(routines) - else: - self.routines = CaseInsensitiveDict((r.name, r) for r in as_tuple(routines)) - - if isinstance(transformation_configs, dict): - self.transformation_configs = transformation_configs - else: - self.transformation_configs = dict((r.name, r) for r in as_tuple(transformation_configs)) + self.routines = CaseInsensitiveDict(routines) + self.transformation_configs = transformation_configs # Resolve the dimensions for trafo configurations for cfg in self.transformation_configs.values():