class_docstr: Stress test for analyzer with null input
class_docstr_tok: ["Stress","test","for","analyzer","with","null","input"]
docstr: Internal function that test if there is NaN in the results
  of a given analyzer
docstr_tok: ["Internal","function","that","test","if","there","is","NaN","in","the","results","of","a","given","analyzer"]
code: def _perform_test(self, analyzer_cls):
      """Internal function that test if there is NaN in the results
      of a given analyzer"""
  
      analyzer = analyzer_cls()
      pipe = self.decoder | analyzer
      pipe.run()
      for key, result in analyzer.results.items():
          if "value" in result.data_object.keys():
              # Test for NaN
              # print(result.data_mode)
              # print(result.data.dtype, result.data)
              self.assertFalse(
                  np.any(np.isnan(result.data)),
                  "NaN in %s data value" % result.name,
              )
              # Test for Inf
              self.assertFalse(
                  np.any(np.isinf(result.data)),
                  "Inf in %s data value" % result.name,
              )
  
file_path: TimeSide/tests/test_analyzers_stress.py
imports: import unittest
  from unit_timeside import TestRunner
  import timeside
  import numpy
label_desc: Use image node_id 2 for calling the TestAnalyzers_with_zeros obj's underlying member method code with example usage: obj._perform_test(analyzer_cls) without return types