Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
b32bfeec
"configs/mmagic/vscode:/vscode.git/clone" did not exist on "686619677693badfa7d39fad13c6ec7bca8414fd"
Commit
b32bfeec
authored
Nov 23, 2021
by
Gustaf Ahdritz
Browse files
Remove redundancy in data_transforms
parent
03bb003a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
openfold/data/data_transforms.py
openfold/data/data_transforms.py
+4
-4
No files found.
openfold/data/data_transforms.py
View file @
b32bfeec
...
...
@@ -1131,12 +1131,12 @@ def random_crop_to_size(
templates_select_indices
=
torch
.
randperm
(
num_templates
,
device
=
protein
[
"seq_length"
].
device
,
generator
=
g
)
else
:
templates_crop_start
=
0
num_templates_crop_size
=
min
(
num_templates
-
templates_crop_start
,
max_templates
)
else
:
templates_crop_start
=
0
num_templates_crop_size
=
num_templates
n
=
seq_length
-
num_res_crop_size
if
"use_clamped_fape"
in
protein
and
protein
[
"use_clamped_fape"
]
==
1.
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment