#NEWLINE# def to_dict( self ) : #NEWLINE# #INDENT# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for probe in self . probes : #NEWLINE# #INDENT# name = utils . to_identifier ( utils . decamelize ( d . __class__ . __name__ ) ) #NEWLINE# re . sub ( '_probe$' , name , '' ) #NEWLINE# d [ name ] = probe . to_dict ( ) #NEWLINE# #UNINDENT# return d