#NEWLINE# def get_sensor_descriptions( ) : #NEWLINE# #INDENT# global fpc_sensors #NEWLINE# for name in fpc_sensors : #NEWLINE# #INDENT# sensor = fpc_sensors [ name ] #NEWLINE# if ( 'elements' in sensor ) : #NEWLINE# #INDENT# for elemidx in xrange ( sensor [ 'elements' ] ) : #NEWLINE# #INDENT# elemidx += 1 #NEWLINE# ( yield { #NEWLINE# #INDENT# 'name' : '{0} {1}' . format ( name , elemidx ) , #NEWLINE# 'type' : sensor [ 'type' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# ( yield { #NEWLINE# #INDENT# 'name' : fpc_sensors , #NEWLINE# 'type' : sensor [ 'type' ] , #NEWLINE# #UNINDENT# } )