Skip to content

Commit

Permalink
Scheduler: Only support new-style dict-based configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Dec 8, 2023
1 parent dbf9f86 commit 1914f34
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions loki/bulk/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 1914f34

Please sign in to comment.