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
200d9517
Commit
200d9517
authored
Jul 29, 2022
by
Gustaf Ahdritz
Browse files
Speed up dataset filtering
parent
d96f27b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openfold/data/data_modules.py
openfold/data/data_modules.py
+1
-1
No files found.
openfold/data/data_modules.py
View file @
200d9517
...
@@ -107,7 +107,7 @@ class OpenFoldSingleDataset(torch.utils.data.Dataset):
...
@@ -107,7 +107,7 @@ class OpenFoldSingleDataset(torch.utils.data.Dataset):
if
(
filter_path
is
not
None
):
if
(
filter_path
is
not
None
):
with
open
(
filter_path
,
"r"
)
as
f
:
with
open
(
filter_path
,
"r"
)
as
f
:
chains_to_include
=
[
l
.
strip
()
for
l
in
f
.
readlines
()]
chains_to_include
=
set
(
[
l
.
strip
()
for
l
in
f
.
readlines
()]
)
self
.
_chain_ids
=
[
c
for
c
in
self
.
_chain_ids
if
c
in
chains_to_include
]
self
.
_chain_ids
=
[
c
for
c
in
self
.
_chain_ids
if
c
in
chains_to_include
]
...
...
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