def test_itu_29(self): testfile = testfilelistITU[28] plotter = loudness.LoudnessPlotter( [os.path.join(self.itu_tst_path, testfile)], self.folderout) plotter.analyse() self.assertAlmostEqual(float(plotter.loudnessdata[testfile]['I'][0]), ITU_awaited[28], 1)
def test_tech3342_6(self): testfile = testfilelist3342[5] plotter = loudness.LoudnessPlotter( [os.path.join(self.ebu_tst_path, testfile)], self.folderout) plotter.analyse() self.assertAlmostEqual(float(plotter.loudnessdata[testfile]['LRA']), 15.0, 1)
def test_tech3341_8(self): testfile = testfilelist3341[8] plotter = loudness.LoudnessPlotter( [os.path.join(self.ebu_tst_path, testfile)], self.folderout) plotter.analyse() self.assertAlmostEqual(float(plotter.loudnessdata[testfile]['I'][0]), -23.0, 1)
def test_generate_itu1770(self): plotter=loudness.LoudnessPlotter(self.itu1770lst,self.folderout) plotter.autoscale=False plotter.template=os.path.join(os.path.dirname(os.path.abspath(__file__)),'loudnessPlotter','template_doc.html') plotter.outfilename='tst_itu.html' plotter.process() #rewrite with another template? plotter.template=os.path.join(os.path.dirname(os.path.abspath(__file__)),'loudnessPlotter','template.snippet') plotter.outfilename='tst_itu.snippet' plotter.write()
def test_generate_default_multifile(self): """ generate_default_multifile """ plotter=loudness.LoudnessPlotter(self.tst_folder,self.folderout) plotter.process()