#NEWLINE# def __init__( self , mesh , survey , **kwargs ) : #NEWLINE# #INDENT# self . survey = survey #NEWLINE# self . mesh = mesh #NEWLINE# Utils . setKwargs ( self , ** a ) #NEWLINE# self . _fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( self . knownFields is None ) : #NEWLINE# #INDENT# raise Exception ( 'knownFields cannot be set to None' ) #NEWLINE# #UNINDENT# if ( self . aliasFields is None ) : #NEWLINE# #INDENT# self . aliasFields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# allFields = ( [ k for k in self . knownFields ] + [ a for a in self . aliasFields ] ) #NEWLINE# assert ( len ( allFields ) == len ( set ( allFields ) ) ) , 'Aliased fields and Known Fields have overlapping definitions.' #NEWLINE# self . startup ( )