Unipressed icon indicating copy to clipboard operation
Unipressed copied to clipboard

idmapping sleep/ wait

Open Dan-Burns opened this issue 2 years ago • 10 comments

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

Dan-Burns avatar Oct 20 '22 02:10 Dan-Burns