#NEWLINE# def set_z( self , Z , scale = False ) : #NEWLINE# #INDENT# 'Wrapper for set_dimension("Z", new_dimension)' #NEWLINE# if ( not scale ) : #NEWLINE# #INDENT# self . set_dimension ( 'Z' , Z ) #NEWLINE# return #NEWLINE# #UNINDENT# self . set_dimension ( 'Z' , np . round ( ( ( Z - self . header . offset [ 2 ] ) / self . header . scale [ 2 ] ) ) ) #NEWLINE# return