Unipressed
Unipressed copied to clipboard
idmapping sleep/ wait
Hello,
I'd like to use the idmappingclient but I have to get lucky to not end up with the error
UniProt has not yet processed the results, consider using time.sleep() to wait until they are complete.
I have reduced the size of my query lists quite a bit but at some point in my loop, I will get the error. I have added time.sleep() before I call request.each_result() but I don't know how long to set it for to ensure I don't run into the error.
I see there is a "waiting" module but I'm not sure how to incorporate it into this so I can wait indefinitely for the results to be returned.
Thank you for this package.
Dan