#NEWLINE# def set_key_point( self , pt ) : #NEWLINE# #INDENT# 'Set the binary key_point field inside the raw classification byte' #NEWLINE# if ( self . header . data_format_id in ( 6 , 7 , 8 , 9 , 10 ) ) : #NEWLINE# #INDENT# class_byte = self . get_raw_classification_flags ( ) #NEWLINE# self . raise_if_overflow ( pt , 1 ) #NEWLINE# outbyte = self . bitpack ( ( class_byte , pt , pt ) , ( ( 0 , 1 ) , ( 0 , 1 ) , ( 2 , 8 ) ) ) #NEWLINE# self . set_raw_classification_flags ( outbyte ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# class_byte = self . get_raw_classification ( ) #NEWLINE# self . raise_if_overflow ( pt , 1 ) #NEWLINE# out_byte = self . bitpack ( ( class_byte , pt , class_byte ) , ( ( 0 , 6 ) , ( 0 , 1 ) , ( 7 , 8 ) ) ) #NEWLINE# self . set_dimension ( 'raw_classification' , out_byte ) #NEWLINE# #UNINDENT# return