AIM-Harvard / pyradiomics

Open-source python package for the extraction of Radiomics features from 2D and 3D images and binary masks. Support: https://discourse.slicer.org/c/community/radiomics
http://pyradiomics.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.15k stars 494 forks source link

[FEAT EXTRACTION] #858

Open hummerichsander opened 10 months ago

hummerichsander commented 10 months ago

Describe the bug According to the documentation, the gldm_a parameter is of type float. However, when providing a float in a parameter file, the following validation error is found: ["Value '0.1' is not of type 'int'. Path: '/setting/gldm_a'"]. Is the documentation, or the validation scheme incorrect?

PyRadiomics configuration setting: gldm_a: 0.1

PyRadiomics log file validation.invalid --- All found errors --- ["Value '0.1' is not of type 'int'. Path: '/setting/gldm_a'"]

To Reproduce

import json
import radiomics

setting = {
    "gldm_a": .1
}

params = json.dumps(dict(setting=setting))

extractor = radiomics.featureextractor.RadiomicsFeatureExtractor()

extractor.loadJSONParams(params)

Version: