Commit c58f3cd8 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix another inference-time data parser bug

parent d65b76a2
......@@ -1132,7 +1132,7 @@ def random_crop_to_size(
num_templates_crop_size = num_templates
n = seq_length - num_res_crop_size
if protein["use_clamped_fape"] == 1.:
if "use_clamped_fape" in protein and protein["use_clamped_fape"] == 1.:
right_anchor = n
else:
x = _randint(0, n)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment