Skip to content

Commit

Permalink
fix: cdr bug
Browse files Browse the repository at this point in the history
  • Loading branch information
elkoz committed Dec 28, 2023
1 parent 46822ef commit 29f6eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proteinflow/data/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ def __getitem__(self, idx):
id = self.data[idx] # data is already filtered by length
chain_id = random.choice(list(self.files[id].keys()))
if self.cdr is not None:
while self.cdr != chain_id.split("__")[1]:
while chain_id.split("__")[1] not in self.cdr:
chain_id = random.choice(list(self.files[id].keys()))
else:
cluster = self.data[idx]
Expand Down

0 comments on commit 29f6eb5

Please sign in to comment.