Sage-Bionetworks/synapsePythonClient

downloadTableFile behaviour change in 1.7.1

telferm57 opened this issue · 3 comments

Hi, I've been using the above method to download mPower files for some time. Just upgraded to synclient 1.7.1 (from 1.6.2 ) and things broke. The method no longer returns a dict , returns string (of the path) instead . Also, if you specify a downloadLocation of "." as per the docs , fails with ' cannot find path "" '. if you leave downloadLocation out, it defaults to the cache, as you'd expect. both fairly minor , perhaps just doc update required ?

I filed an issue (SYNPY-503) for the downloadLocation and for the return type (SYNPY-504) in Jira for an engineer to take a look at.

Hi,
We have deprecated downloadTableFile() in favor of downloadTableColumns() because the former method was very inefficient when downloading multiple files in a for loop. I have updated the documentation for the return value of downloadTableFile(), though.

#462 downloadTableColumns will have the downloadLocation parameter once the pull request has been reviewed and pulled in. For the time being you may need to manually move the downloaded files of downloadTableColumns().

@telferm57 please re-open if you are still having any issues! Thank you.