[Code Error] TimitGetFiles.py code errors

May 8, 2015 at 4:12 PM
Edited May 8, 2015 at 4:18 PM
Hello.

I have worked in linux-gcc branch of CNTK git.

I read Demos/Speech/TimitGetFiles.py code and here, I found something wrong in the following code.
if !hcopyScript or !cnScriptFp or !cnOutputScriptFp or !fileListFp:
    print "Can't open the necessary output files.
    sys.exit(0)
I think this code have to be modified as the following code.


if !hcopyScriptFp or !cnScriptFp or !cnOutputScriptFp or !fileListFp:
print "Can't open the necessary output files."
sys.exit(0)


Because variable "hcopyScriptFp" was used before, but 'if statement' didn't check this variable.

Also, print statement in this if statement didn't use double quotation marks in the end of this.

If it is already modified, you don't have to consider this errors.

Best regards,

Donghyun