コード例 #1
0
 def test_launch(self):
     """
     Check that all required keys are present in output from BrainViewer launch.
     """
     time_series = self.datatypeFactory.create_timeseries(self.connectivity)
     cross_coherence = self.datatypeFactory.create_crosscoherence(time_series)
     viewer = CrossCoherenceVisualizer()
     result = viewer.launch(cross_coherence)
     expected_keys = ['matrix_data', 'matrix_shape', 'matrix_strides', 'frequency']
     for key in expected_keys:
         self.assertTrue(key in result)
コード例 #2
0
 def test_launch(self, cross_coherence_factory):
     """
     Check that all required keys are present in output from BrainViewer launch.
     """
     cross_coherence_index = cross_coherence_factory()
     viewer = CrossCoherenceVisualizer()
     view_model = viewer.get_view_model_class()()
     view_model.datatype = cross_coherence_index.gid
     result = viewer.launch(view_model)
     expected_keys = ['matrix_data', 'matrix_shape', 'frequency']
     for key in expected_keys:
         assert key in result
コード例 #3
0
 def test_launch(self):
     """
     Check that all required keys are present in output from BrainViewer launch.
     """
     time_series = self.datatypeFactory.create_timeseries(self.connectivity)
     cross_coherence = self.datatypeFactory.create_crosscoherence(
         time_series)
     viewer = CrossCoherenceVisualizer()
     result = viewer.launch(cross_coherence)
     expected_keys = ['matrix_data', 'matrix_shape', 'frequency']
     for key in expected_keys:
         self.assertTrue(key in result)