Skip to content

Commit bb5361d

Browse files
committed
test
1 parent 475f6fa commit bb5361d

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎test/pspm_extract_segments_test.m‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ function test_manual_length(this,nr_trial,nan_ratio)
185185
function test_auto_mode_glm_with_markers(this)
186186
import matlab.unittest.constraints.IsEqualTo
187187
import matlab.unittest.constraints.RelativeTolerance
188-
load(fullfile('ImportTestData', 'fitted_models', 'glm_scr_cond_marker.mat'), 'glm');
189-
load(fullfile('ImportTestData', 'fitted_models', 'glm_orig_data.mat'), 'data');
188+
load(pspm_path('..','ImportTestData', 'fitted_models', 'glm_scr_cond_marker.mat'), 'glm');
189+
% load(fullfile('ImportTestData', 'fitted_models', 'glm_scr_cond_marker.mat'), 'glm');
190+
load(pspm_path('..','ImportTestData', 'fitted_models', 'glm_orig_data.mat'), 'data');
190191
if ~isfield(glm.input, 'channel') && isfield(glm.input, 'chan')
191192
glm.input.channel = glm.input.chan;
192193
glm.input = rmfield(glm.input,'chan'); % rename the field channel to chan
@@ -245,8 +246,11 @@ function test_auto_mode_glm_with_markers(this)
245246
function test_auto_mode_glm_with_seconds(this)
246247
import matlab.unittest.constraints.IsEqualTo
247248
import matlab.unittest.constraints.RelativeTolerance
248-
load(['ImportTestData' filesep 'fitted_models' filesep 'glm_scr_cond_second.mat'], 'glm');
249-
load(['ImportTestData' filesep 'fitted_models' filesep 'glm_orig_data.mat'], 'data');
249+
load(pspm_path('..','ImportTestData', 'fitted_models', 'glm_scr_cond_second.mat'), 'glm');
250+
load(pspm_path('..','ImportTestData' , 'fitted_models' , 'glm_orig_data.mat'), 'data');
251+
252+
% load(['ImportTestData' filesep 'fitted_models' filesep 'glm_scr_cond_second.mat'], 'glm');
253+
% load(['ImportTestData' filesep 'fitted_models' filesep 'glm_orig_data.mat'], 'data');
250254
assert(numel(glm.input.timing) == 1);
251255
input_data = glm.input.data{1};
252256
this.verifyTrue(all(input_data == data{1}.data));
@@ -300,7 +304,8 @@ function test_auto_mode_glm_with_seconds(this)
300304
function test_auto_mode_dcm(this)
301305
import matlab.unittest.constraints.IsEqualTo
302306
import matlab.unittest.constraints.RelativeTolerance
303-
load(['ImportTestData' filesep 'fitted_models' filesep 'dcm_scr_trial.mat'], 'dcm');
307+
% load(['ImportTestData' filesep 'fitted_models' filesep 'dcm_scr_trial.mat'], 'dcm');
308+
load(pspm_path('..','ImportTestData', 'fitted_models', 'dcm_scr_trial.mat'), 'dcm');
304309
input_data = dcm.input.scr;
305310
sr = dcm.input.sr;
306311
trial_sizes = cumsum([60, 60, 38, 21]);

0 commit comments

Comments
 (0)