fixed Series error if first interface has multiple inputs

This commit is contained in:
Abubakar Abid 2021-10-12 07:38:01 -05:00
parent a883bd9af3
commit 53fba391fa

View File

@ -42,8 +42,7 @@ class Series(Interface):
def __init__(self, *interfaces, **options):
fns = [io.predict for io in interfaces]
def connected_fn(data): # Run each function with the appropriate preprocessing and postprocessing
data = [data] # put it in a list before it gets unraveled
def connected_fn(*data): # Run each function with the appropriate preprocessing and postprocessing
for idx, io in enumerate(interfaces):
# skip preprocessing for first interface since the compound interface will include it
if idx > 0: