Toolkits > com.ibm.streamsx.topology.pysamples 1.1.0 > com.ibm.streamsx.topology.pysamples.positional > Lowest
Find the lowest value above a threshold in all the remaining attributes.
@spl.map(style='position')
def Lowest(threshold, *values):
"Find the lowest value above a threshold in all the remaining attributes."
lm = None
for v in values:
if v >= threshold:
if lm == None:
lm = v
elif v < lm:
lm = v
if lm != None:
return lm,
Tuple attribute values are passed by position to the Python callable.