#NEWLINE# def get_annotations_for_tier( self , tier , annotation_parent = None ) : #NEWLINE# #INDENT# if ( tier . name == 'ref' ) : #NEWLINE# #INDENT# return [ poioapi . io . graf . Annotation ( e [ 'id' ] , e [ 'value' ] ) for e in self . _elements_map [ tier . name ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( tier . name , annotation_parent . id ) in self . _elements_map ) : #NEWLINE# #INDENT# return [ poioapi . io . graf . Annotation ( e [ 'id' ] , e [ 'value' ] , e [ 'features' ] ) for e in self . _elements_map [ ( tier . name , annotation_parent . id ) ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ ]