code: def testRegression(self):
      spectrum = [1] * 1024
      mbands = self.InitTriangularBarkBands(24)(spectrum)
      self.assertEqual(len(mbands), 24)
      self.assert_(not any(numpy.isnan(mbands)))
      self.assert_(not any(numpy.isinf(mbands)))
      self.assertAlmostEqualVector(mbands, [1] * 24, 1e-5)
  
      mbands = self.InitTriangularBarkBands(128)(spectrum)
      self.assertEqual(len(mbands), 128)
      self.assert_(not any(numpy.isnan(mbands)))
      self.assert_(not any(numpy.isinf(mbands)))
      self.assertAlmostEqualVector(mbands, [1] * 128, 1e-5)
  
file_path: essentia/test/src/unittests/spectral/test_triangularbarkbands.py
imports: from essentia_test import *
  import numpy
label_desc: Use image node_id 2 for calling the TestTriangularBarkBands obj's underlying member method code with example usage: obj.testRegression() without return types