#NEWLINE# def record( self , data ) : #NEWLINE# #INDENT# ' Record the data entry when the filter function returns True.\n\n        Parameters\n        ----------\n        values : NamedTuple\n            The record entry.\n\n        Raises\n        ------\n        RecorderError :\n            Raised if the method is called without the recorder been ready to\n            accept data.\n\n        ' #NEWLINE# if self . _ready : #NEWLINE# #INDENT# if self . _filter ( self ) : #NEWLINE# #INDENT# self . _writer . writerow ( data ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# msg = 'Method called while recorder is not ready to record' #NEWLINE# raise RecorderError ( msg )