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
4a215372
Commit
4a215372
authored
Sep 10, 2023
by
Geoffrey Yu
Browse files
fixed index error in cropping
parent
dc5d43d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
openfold/data/data_transforms_multimer.py
openfold/data/data_transforms_multimer.py
+3
-2
No files found.
openfold/data/data_transforms_multimer.py
View file @
4a215372
...
@@ -401,8 +401,9 @@ def get_contiguous_crop_idx(protein, crop_size, generator):
...
@@ -401,8 +401,9 @@ def get_contiguous_crop_idx(protein, crop_size, generator):
upper
=
this_len
-
chain_crop_size
+
1
,
upper
=
this_len
-
chain_crop_size
+
1
,
generator
=
generator
,
generator
=
generator
,
device
=
chain_lens
.
device
)
device
=
chain_lens
.
device
)
cur_asym_id
=
unique_asym_ids
[
int
(
idx
)].
item
()
asym_offset
=
per_asym_residue_index
[
int
(
idx
)]
print
(
f
"######## 405 cur_asym_id:
{
cur_asym_id
}
idx:
{
idx
}
and per_asym_residue_index keys:
{
list
(
per_asym_residue_index
.
keys
())
}
"
)
asym_offset
=
per_asym_residue_index
[
int
(
cur_asym_id
)]
crop_idxs
.
append
(
crop_idxs
.
append
(
torch
.
arange
(
asym_offset
+
chain_start
,
asym_offset
+
chain_start
+
chain_crop_size
)
torch
.
arange
(
asym_offset
+
chain_start
,
asym_offset
+
chain_start
+
chain_crop_size
)
)
)
...
...
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