-
Notifications
You must be signed in to change notification settings - Fork 19
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
A dot ('.') is added to a process yaml filepath #85
Comments
Hi @pianoza, could you give the entire traceback? I am trying to see where this can go wrong, it seems the node directories are starting with a dot, but I cannot think of why that would be. I assume the fastr nodes don't have a dot in their label? I need to see from the complete traceback about the call that actually requests the loading of the file, because probably there the dot is already introduced somehow. Kind regards, |
Hi @hachterberg, thank you for the reply and apologies for the delayed response. However, I have done some more tests using PREDICT as the feature extractor that runs ok. When running WORC with a small number of samples everything goes well. But It crashes when running it with 1493 samples. Here is the full trace of the run with 1493 samples:
It seems like it's hitting a memory limit -- If there are no other errors, this is often a result of too high memory use or Maybe it's related to this issue as well: #79 (comment) Best regards, |
Describe the bug
When running the BasicWORC tutorial, it runs without any issue using the 'predict/CalcFeatures:1.0' configuration for FeatureCalculators. However, when using the 'pyradiomics/Pyradiomics:1.0', the features are not calculated. I ran a fastr trace like this:
fastr trace $RUNDIR/WORC_Example_STWStrategyHN_BasicWORC/tmp/__sink_data__.json --sinks features_train_CT_0_pyradiomics --sample HN1006_0 -v
The output is this:
fastr.exceptions.FastrFileNotFound: FastrFileNotFound from $PYTHONENVPATH/envs/worc/lib/python3.7/site-packages/fastr/abc/serializable.py line 152: Could not find file Could not open $RUNDIR/WORC_Example_STWStrategyHN_BasicWORC/tmp/.calcfeatures_train_pyradiomics_Pyradiomics_1_0_CT_0/HN1006_0/__fastr_result__.yaml for reading
In the tmp folder, the path exists under name "calcfeatures_train_pyradiomics_Pyradiomics_1_0_CT_0". But for some reason fastr is looking for a hidden folder ".calcfeatures_train_pyradiomics_Pyradiomics_1_0_CT_0" that doesn't exist.
WORC configuration
Default config with overrides on "FeatureCalculators" to use pyradiomics.
In WORC_config.py, the mount folders for
tmp
andoutput
were changed as well to be inside the $RUNDIR/experimentfolderDesktop (please complete the following information):
Update
It seems the problem is not only related to pyradiomics. For some reason, sometimes fastr keeps looking for a hidden folder. For example, for all the failed sinks (Barchart_PNG, classification, StatisticalTestFeatures_CSV, etc) fastr is looking for a hidden folder
.classify
instead of the existing folderclassify
:fastr trace $RUNDIR/tmp/__sink_data__.json --sinks Barchart_PNG -v --sample all [WARNING] __init__:0084 >> Not running in a production installation (branch "unknown" from installed package) Tracing errors for sample all from sink Barchart_PNG Located result pickle: $RUNDIR/tmp/.classify/all/__fastr_result__.yaml Traceback (most recent call last): File "$HOME/miniconda3/envs/worc/lib/python3.7/site-packages/fastr/abc/serializable.py", line 142, in loadf with open_func(path, 'rb') as fin: FileNotFoundError: [Errno 2] No such file or directory: '$RUNDIR/tmp/.classify/all/__fastr_result__.yaml'
The text was updated successfully, but these errors were encountered: