Skip to content

Commit 93f7ce9

Browse files
committed
Fixed a small bug that reappeared
1 parent 6cc6b6a commit 93f7ce9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

ngcsimlib/context.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,9 @@ def make_commands(self, path_to_commands_file):
354354
commands = json.load(file)
355355
for c_name, command in commands.items():
356356
if command['class'] == "dynamic_compiled":
357-
if len(command['components']) > 1:
358-
self.compile_by_key(
359-
*self.get_components(*command['components'], unwrap=False), compile_key=command['compile_key'],
360-
name=c_name)
361-
else:
362-
self.compile_by_key(
363-
self.get_components(*command['components'], unwrap=False), compile_key=command['compile_key'],
364-
name=c_name)
357+
self.compile_by_key(
358+
*self.get_components(*command['components'], unwrap=False), compile_key=command['compile_key'],
359+
name=c_name)
365360
else:
366361
klass = load_from_path(command['class'])
367362
klass(*command['args'], **command['kwargs'], components=self.get_components(*command['components'], unwrap=False),

0 commit comments

Comments
 (0)