Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unexpected behavior in the DIPY workflow script #1488
The workflow script that extends the base workflow class does not behave as expected always.
The following URL contains the commit of a small test script for DIPY workflows. This script simply checks if the file provided by the user exists in the system or not? However, if the file does not exist then it reports a message (under the else block).
When the script is run with a valid file path then the output is as expected and it reports the file to be existing. But, when an invalid file path is given then instead of executing the code under the else block it just throws an error-trace. The error trace is expected below:
Way to reproduce
Note that there is no file named '1' in my system so it should execute the code under the else block.
python check_scratch() /Users/schmuck/Documents/1
Traceback (most recent call last):