Skip to content

Commit

Permalink
Have test run from ECT3T_folder
Browse files Browse the repository at this point in the history
  • Loading branch information
likeajumprope committed Dec 5, 2022
1 parent 665bad1 commit aad712d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions PhysIO/tests/unit/readin/tapas_physio_readin_bids_test.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,19 @@ function test_compare_write2bids_consistency(testCase)
pathReferenceFiles = fullfile(pathExamples, 'TestReferenceResults', 'write2bids', 'norm');

% location of the physio example file that will be passed to create_main_regrssors
pathExampleData = fullfile(pathExamples, 'write2bids', 'norm');
% pathExampleData = fullfile(pathExamples, 'write2bids', 'norm');

load(fullfile(pathExampleData, 'physio.mat'), 'physio'); % this physio structure contains data from step 2
pathExampleData = fullfile(pathExamples, 'Philips', 'ECG3T_V2');
load(fullfile(pathExampleData,'physio_out', 'physio.mat'), 'physio'); % this physio structure contains data from step 2

% does that work?
cd(pathExampleData)
cd(fullfile(pathExampleData))
physio = tapas_physio_main_create_regressors(physio);

% read json file from example data
cd(fullfile(pathExampleData, 'physio_out'))

% go on here
fileName = 'sub-01_task_desc_physio_norm.json'; % filename in JSON extension
str = fileread(fileName); % dedicated for reading files as text
ExampleJson = jsondecode(str);
Expand Down

0 comments on commit aad712d

Please sign in to comment.