I have a Python caller that eventually makes a dictionary
Input: {1:a, 2:b, 3:c}
Desired output:
A representation of the code is below. I am not using the class. Just a simple function which coverts input list to dictionary. I also expose the key and value attributes. This is only representation because the actual code is quite complex. The code does what I want but I am having an issue writing them out as attributes
import fme, fmeobjects
#Update connection properties
def processFeature(feature):
# Initialize values
list= feature.getAttribute('list')
#Code to make list to dictionary
#Output dictionary
for key,value in dict.items():
feature.setAttribute('key', key)
feature.setAttribute('value',value)
return
Any pointers would be extremely helpful!