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