@@ 56-79 (lines=24) @@ | ||
53 | 'Signal Space Separation', |
|
54 | fnames['raw']['s2'][1], provenance = {'mnefun':{}}) |
|
55 | ||
56 | @unittest.skip("Needs to be fixed for new mnefun support code.") |
|
57 | def test_Logs_ssp_operation(self): |
|
58 | import niprov.mnefunsupport |
|
59 | class MockParams(object): |
|
60 | pass |
|
61 | params = MockParams() |
|
62 | params.subjects = ['s1','s2'] |
|
63 | fnames = {'pca':{'s1':['subj 1 pca file 1','subj 1 pca file 2'], |
|
64 | 's2':['subj 2 pca file 1','subj 2 pca file 2']}, |
|
65 | 'sss': {'s1':['subj 1 sss file 1','subj 1 sss file 2'], |
|
66 | 's2':['subj 2 sss file 1','subj 2 sss file 2']}} |
|
67 | self.libs.mnefun.get_raw_fnames.side_effect = lambda p, s, t: fnames[t][s] |
|
68 | def apply_preprocessing_combined(): |
|
69 | pass |
|
70 | with patch('niprov.mnefunsupport.log') as log: |
|
71 | niprov.mnefunsupport.handler('Apply SSP vectors and filtering.', |
|
72 | apply_preprocessing_combined, None, params, |
|
73 | dependencies=self.dependencies) |
|
74 | log.assert_any_call(fnames['pca']['s1'][0], |
|
75 | 'Signal Space Projection', |
|
76 | fnames['sss']['s1'][0], provenance = {'mnefun':{}}) |
|
77 | log.assert_any_call(fnames['pca']['s2'][1], |
|
78 | 'Signal Space Projection', |
|
79 | fnames['sss']['s2'][1], provenance = {'mnefun':{}}) |
|
80 | ||
81 | @unittest.skip("Needs to be fixed for new mnefun support code.") |
|
82 | def test_Logs_epoch_operation(self): |
|
@@ 32-54 (lines=23) @@ | ||
29 | discover.assert_any_call('/root/janedoe/rawdir') |
|
30 | self.listener.mnefunEventReceived.assert_called_with('fetch_raw_files') |
|
31 | ||
32 | @unittest.skip("Needs to be fixed for new mnefun support code.") |
|
33 | def test_Logs_sss_operation(self): |
|
34 | import niprov.mnefunsupport |
|
35 | class MockParams(object): |
|
36 | pass |
|
37 | params = MockParams() |
|
38 | params.subjects = ['s1','s2'] |
|
39 | fnames = {'raw':{'s1':['subj 1 raw file 1','subj 1 raw file 2'], |
|
40 | 's2':['subj 2 raw file 1','subj 2 raw file 2']}, |
|
41 | 'sss': {'s1':['subj 1 sss file 1','subj 1 sss file 2'], |
|
42 | 's2':['subj 2 sss file 1','subj 2 sss file 2']}} |
|
43 | self.libs.mnefun.get_raw_fnames.side_effect = lambda p, s, t: fnames[t][s] |
|
44 | def fetch_sss_files(): |
|
45 | pass |
|
46 | with patch('niprov.mnefunsupport.log') as log: |
|
47 | niprov.mnefunsupport.handler('Pulling SSS files from remote workstation', |
|
48 | fetch_sss_files, None, params, dependencies=self.dependencies) |
|
49 | log.assert_any_call(fnames['sss']['s1'][0], |
|
50 | 'Signal Space Separation', |
|
51 | fnames['raw']['s1'][0], provenance = {'mnefun':{}}) |
|
52 | log.assert_any_call(fnames['sss']['s2'][1], |
|
53 | 'Signal Space Separation', |
|
54 | fnames['raw']['s2'][1], provenance = {'mnefun':{}}) |
|
55 | ||
56 | @unittest.skip("Needs to be fixed for new mnefun support code.") |
|
57 | def test_Logs_ssp_operation(self): |