def new_result(self, data_mode='<STR_LIT:value>', time_mode='<STR_LIT>'):
from datetime import datetime<EOL>result = AnalyzerResult(data_mode=data_mode,<EOL>time_mode=time_mode)<EOL>result.id_metadata.date = datetime.now().replace(<EOL>microsecond=<NUM_LIT:0>).isoformat('<STR_LIT:U+0020>')<EOL>result.id_metadata.version = timeside.core.__version__<EOL>result.id_metadata.author = '<STR_LIT>'<EOL>result.id_metadata.id = self.id()<EOL>result.id_metadata.name = self.name()<EOL>result.id_metadata.description = self.description()<EOL>result.id_metadata.unit = self.unit()<EOL>result.id_metadata.proc_uuid = self.uuid()<EOL>result.audio_metadata.uri = self.mediainfo()['<STR_LIT>']<EOL>result.audio_metadata.sha1 = self.mediainfo()['<STR_LIT>']<EOL>result.audio_metadata.start = self.mediainfo()['<STR_LIT:start>']<EOL>result.audio_metadata.duration = self.mediainfo()['<STR_LIT>']<EOL>result.audio_metadata.is_segment = self.mediainfo()['<STR_LIT>']<EOL>result.audio_metadata.channels = self.channels()<EOL>result.parameters = Parameters(self.get_parameters())<EOL>if time_mode == '<STR_LIT>':<EOL><INDENT>result.data_object.frame_metadata.samplerate = self.result_samplerate<EOL>result.data_object.frame_metadata.blocksize = self.result_blocksize<EOL>result.data_object.frame_metadata.stepsize = self.result_stepsize<EOL><DEDENT>return result<EOL>
Create a new result

Attributes
----------
data_object : MetadataObject
id_metadata : MetadataObject
audio_metadata : MetadataObject
frame_metadata : MetadataObject
label_metadata : MetadataObject
parameters : dict