#NEWLINE# def _label_surfaces( self ) : #NEWLINE# #INDENT# '\n        It applies the default surface labels for a cubic network\n        ' #NEWLINE# ( x , y , z ) = self [ 'pore.coords' ] . T #NEWLINE# labels = [ 'internal' , 'front' , 'back' , 'left' , 'right' , 'bottom' , 'top' ] #NEWLINE# for label in labels : #NEWLINE# #INDENT# if ( ( 'pore.' + label ) not in self . keys ( ) ) : #NEWLINE# #INDENT# self [ ( 'pore.' + label ) ] = False #NEWLINE# #UNINDENT# #UNINDENT# if ( 'pore.boundary' in self . keys ( ) ) : #NEWLINE# #INDENT# internal = ( - self [ 'pore.boundary' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# internal = self [ 'pore.all' ] #NEWLINE# #UNINDENT# self [ 'pore.internal' ] = internal #NEWLINE# self [ 'pore.front' ] [ ( x <= x . min ( ) ) ] = True #NEWLINE# self [ 'pore.back' ] [ ( x >= x . max ( ) ) ] = True #NEWLINE# self [ 'pore.left' ] [ ( y <= y . min ( ) ) ] = True #NEWLINE# self [ 'pore.right' ] [ ( internal >= y . max ( ) ) ] = True #NEWLINE# self [ 'pore.bottom' ] [ ( z <= z . min ( ) ) ] = True #NEWLINE# self [ 'pore.top' ] [ ( z >= z . max ( ) ) ] = True