class_docstr: test AnalyzerResult factory for all AnalyzerResult classes
class_docstr_tok: ["test","AnalyzerResult","factory","for","all","AnalyzerResult","classes"]
docstr: Data methods for Segment & Value Result
docstr_tok: ["Data","methods","for","Segment","&","Value","Result"]
code: def test_SegmentValueResult(self):
      "Data methods for Segment & Value Result"
      self.time_mode = "segment"
      self.data_mode = "value"
      self.result = AnalyzerResult(self.data_mode, self.time_mode)
      # Audio
      self.audio_start = np.random.rand(1) * 50
      # Expected data
      nb_val = 200
      self.data = np.random.randn(nb_val, 4)
      self.time = np.random.rand(1, nb_val) * 500
      self.duration = np.random.rand(1, nb_val) * 50
      # Set data in result
      self.result.data_object.value = self.data
      self.result.data_object.time = self.time
      self.result.data_object.duration = self.duration
      self.result.audio_metadata.start = self.audio_start
      self.result.audio_metadata.duration = self.duration
  
imports: from __future__ import division
  import unittest
  from unit_timeside import TestRunner
  from timeside.core.analyzer import AnalyzerResult
  import numpy
label_desc: Use image node_id 7 for calling the TestAnalyzerResult_Data_Methods obj's underlying member method code with example usage: obj.test_SegmentValueResult() without return types