Skip to content

Commit

Permalink
test: check output from radiomicFeatureExtraction
Browse files Browse the repository at this point in the history
  • Loading branch information
strixy16 committed Dec 19, 2023
1 parent d3ad8e8 commit c525247
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_feature_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def pyradiomicsParamFilePath():

@pytest.fixture
def nsclcMetadataPath():
return "tests/output/NSCLC_Radiogenomics_ct_to_seg_match_list.csv"
return "tests/output/ct_to_seg_match_list_NSCLC_Radiogenomics.csv"


def test_singleRadiomicFeatureExtraction_SEG(nsclcCTImage, nsclcSEGImage, pyradiomicsParamFilePath):
Expand Down Expand Up @@ -98,3 +98,10 @@ def test_radiomicFeatureExtraction(nsclcMetadataPath):
"Volume feature is incorrect"


def test_radiomicFeatureExtraction_output(nsclcMetadataPath):
"""Test output creation from radiomic feature extraction"""
actual = radiomicFeatureExtraction(nsclcMetadataPath,
imageDirPath = "tests/",
roiNames = None,
outputDirPath = "tests/output/")
assert os.path.exists("tests/output/features/radfeatures_NSCLC_Radiogenomics.csv")

0 comments on commit c525247

Please sign in to comment.