New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Silent failure when initializing extractor with an invalid path #587
Comments
Good point, this can be very dangerous. If you enable @JoostJM is there a reason to not always validate? How about we switch |
I will investigate, but as far as I know the parameter file is also validate when running the cmd line normally. |
I looked yesterday, and I was able to confirm the issue. |
It's indeed a bug in the When passing a valid file path, the parameter file is validated in both cases, I.e. checked if it conforms to the pyradiomics configuration schema. This is also true when a dictionary is passed as a single positional argument for initialization of the feature extractor (not an expanded dictionary/keyword arguments, which are interpreted as "settings" type configuration parameters). |
Regarding this, what kind of dictionary do you mean? Because documentation says:
Unless you mean a settings dict, so when I initalize the feature extractor with Edit: Nevermind, found the relevant documentation:
|
Describe the bug
Silent failure when initializing extractor with an invalid path.
Observed behavior:
When using
radiomics.featureextractor.RadiomicsFeatureExtractor
with an non-existing path (or one containing~/
) the yaml file is not read, but the extractor returns a default object.Expected behavior:
An error thrown: file not found. Currently, users might continue to
execute
(and publish?!) thinking the output uses their settings.PyRadiomics configuration
Not applicable. Any valid pyradiomics yaml.
Version (please complete the following information):
Additional context
Running in fresh install base anaconda environment.
The text was updated successfully, but these errors were encountered: