Example #1
0
 def test_full_pipeline(self):
     ''' Smoke test of entire pipeline, from stimulus loading to
     event file export. '''
     stim = VideoStim(join(_get_test_data_path(), 'video', 'small.mp4'))
     extractors = [VibranceExtractor()]
     timeline = stim.extract(extractors, show=False)
     exp = FSLExporter()
     tmpdir = tempfile.mkdtemp()
     exp.export(timeline, tmpdir)
     from glob import glob
     files = glob(join(tmpdir, '*.txt'))
     self.assertEquals(len(files), 1)
     shutil.rmtree(tmpdir)
Example #2
0
def test_full_pipeline():
    ''' Smoke test of entire pipeline, from stimulus loading to
    event file export. '''
    stim = ImageStim(join(get_test_data_path(), 'image', 'obama.jpg'))
    timeline = VibranceExtractor().extract(stim).to_df(stim_name=True)
    exp = FSLExporter()
    tmpdir = tempfile.mkdtemp()

    exp.export(timeline, tmpdir)
    from glob import glob
    files = glob(join(tmpdir, '*.txt'))
    assert len(files) == 1
    shutil.rmtree(tmpdir)
Example #3
0
 def test_full_pipeline(self):
     ''' Smoke test of entire pipeline, from stimulus loading to
     event file export. '''
     stim = VideoStim(join(_get_test_data_path(), 'video', 'small.mp4'))
     extractors = [FaceDetectionExtractor()]
     timeline = stim.extract(extractors, show=False)
     exp = FSLExporter()
     tmpdir = tempfile.mkdtemp()
     exp.export(timeline, tmpdir)
     from glob import glob
     files = glob(join(tmpdir, '*.txt'))
     self.assertEquals(len(files), 1)
     shutil.rmtree(tmpdir)