Skip to content

Commit f616715

Browse files
committed
add actual export test
1 parent 66825be commit f616715

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

matRad/dicom/matRad_interpDicomCtCube.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@
9999

100100
% set the return ctCube to the original Ct information because
101101
% there is no interpolation needed
102-
interpCt.cubeIV{1} = origCt;
103-
cfg = MatRad_Config.instance();
104-
102+
interpCt.cubeIV{1} = origCt;
105103
else
106104
% calculate new grid for the interpolation,
107105
% grid equals a range of the first pixel, to the original

test/dicom/test_dicomIO.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
assertTrue(numel(dircontents) > 0)
5252

5353

54-
function test_DicomImporter_loadFiles
54+
function test_DicomImporter_construct_with_path_and_file_load
5555
path = helper_temporaryFolder('dicomIOtest',false);
5656
h = matRad_DicomImporter(path);
5757
assertTrue(isequal(h.patDir, path));
@@ -73,7 +73,11 @@
7373
end
7474
assertTrue(resBool);
7575

76+
function test_DicomImporter_Import
77+
path = helper_temporaryFolder('dicomIOtest',false);
78+
h = matRad_DicomImporter(path);
7679

80+
h.matRad_importDicom();
7781

7882

7983

0 commit comments

Comments
 (0)