Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chain.load_from_string() sometimes doesn't load in the for loop #8

Open
m-abyzov opened this issue May 22, 2019 · 0 comments
Open

Chain.load_from_string() sometimes doesn't load in the for loop #8

m-abyzov opened this issue May 22, 2019 · 0 comments

Comments

@m-abyzov
Copy link

m-abyzov commented May 22, 2019

I have next code:

 for sequence_alignment in sequences:
    chain = Chain.load_from_string(sequence=sequence_alignment)
    cdrs = dict()
    try:
      for cdr_name, cdr_indexes in chain.cdr[0].items():
        cdrs[cdr_name] = sequence_alignment[cdr_indexes[0]:(cdr_indexes[-1] + 1)]
    except Exception as error:
         time.sleep(0.1)
         if chain.cdr == None:
            print("ERROR::", error)

And sometimes it prints error, which indicates that cdrs not loaded, But I called the load function! Seems some concurrency issues in your lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant