Hi @kidega, thanks for letting me know that.
You are right. The ListCombiner will raise the error if no features have been input into the transformer.
You can avoid the error by editing the Python script. Try this:
- Right-click on the transformer GUI > Edit to open the Canvas for the transformer definition.
- Open the PythonCaller parameters dialog and add a line to the __init__ definition like this.
class ListCombiner(object):
def __init__(self):
# "snowballs" dictioinaly
# key: value of a list element
# value: tuple (set of features belonging to a group, set of combined list elements of the group)
self.snowballs = {}
self.features = o] # features list keeping the input order.
self.kAttrIndex = '__listcombiner.index'
self.orderByGroup = False ###### Add this line to avoid the error #####
Hi @kidega, thanks for letting me know that.
You are right. The ListCombiner will raise the error if no features have been input into the transformer.
You can avoid the error by editing the Python script. Try this:
- Right-click on the transformer GUI > Edit to open the Canvas for the transformer definition.
- Open the PythonCaller parameters dialog and add a line to the __init__ definition like this.
class ListCombiner(object):
def __init__(self):
# "snowballs" dictioinaly
# key: value of a list element
# value: tuple (set of features belonging to a group, set of combined list elements of the group)
self.snowballs = {}
self.features = o] # features list keeping the input order.
self.kAttrIndex = '__listcombiner.index'
self.orderByGroup = False ###### Add this line to avoid the error #####
Hi @takashi Thanks, that worked like a charm! And thanks for quick reply.
Hi @kidega, thanks for letting me know that.
You are right. The ListCombiner will raise the error if no features have been input into the transformer.
You can avoid the error by editing the Python script. Try this:
- Right-click on the transformer GUI > Edit to open the Canvas for the transformer definition.
- Open the PythonCaller parameters dialog and add a line to the __init__ definition like this.
class ListCombiner(object):
def __init__(self):
# "snowballs" dictioinaly
# key: value of a list element
# value: tuple (set of features belonging to a group, set of combined list elements of the group)
self.snowballs = {}
self.features = o] # features list keeping the input order.
self.kAttrIndex = '__listcombiner.index'
self.orderByGroup = False ###### Add this line to avoid the error #####
You are welcome. I updated the transformer in FME Hub too.
https://hub.safe.com/publishers/pacific-spatial-solutions/transformers/listcombiner