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
426555e9
Commit
426555e9
authored
Aug 24, 2022
by
Sam DeLuca
Browse files
removing unecessary code from __init__ files
parent
71a274d8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
69 deletions
+7
-69
openfold/model/__init__.py
openfold/model/__init__.py
+0
-16
openfold/np/__init__.py
openfold/np/__init__.py
+0
-16
openfold/np/relax/__init__.py
openfold/np/relax/__init__.py
+0
-16
openfold/utils/__init__.py
openfold/utils/__init__.py
+0
-18
thread_sequence.py
thread_sequence.py
+7
-3
No files found.
openfold/model/__init__.py
View file @
426555e9
# import os
# import glob
# import importlib as importlib
#
# _files = glob.glob(os.path.join(os.path.dirname(__file__), "*.py"))
# __all__ = [
# os.path.basename(f)[:-3]
# for f in _files
# if os.path.isfile(f) and not f.endswith("__init__.py")
# ]
# _modules = [(m, importlib.import_module("." + m, __name__)) for m in __all__]
# for _m in _modules:
# globals()[_m[0]] = _m[1]
#
# # Avoid needlessly cluttering the global namespace
# del _files, _m, _modules
openfold/np/__init__.py
View file @
426555e9
import
os
import
glob
import
importlib
as
importlib
_files
=
glob
.
glob
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"*.py"
))
__all__
=
[
os
.
path
.
basename
(
f
)[:
-
3
]
for
f
in
_files
if
os
.
path
.
isfile
(
f
)
and
not
f
.
endswith
(
"__init__.py"
)
]
_modules
=
[(
m
,
importlib
.
import_module
(
"."
+
m
,
__name__
))
for
m
in
__all__
]
for
_m
in
_modules
:
globals
()[
_m
[
0
]]
=
_m
[
1
]
# Avoid needlessly cluttering the global namespace
del
_files
,
_m
,
_modules
openfold/np/relax/__init__.py
View file @
426555e9
import
os
import
glob
import
importlib
as
importlib
_files
=
glob
.
glob
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"*.py"
))
__all__
=
[
os
.
path
.
basename
(
f
)[:
-
3
]
for
f
in
_files
if
os
.
path
.
isfile
(
f
)
and
not
f
.
endswith
(
"__init__.py"
)
]
_modules
=
[(
m
,
importlib
.
import_module
(
"."
+
m
,
__name__
))
for
m
in
__all__
]
for
_m
in
_modules
:
globals
()[
_m
[
0
]]
=
_m
[
1
]
# Avoid needlessly cluttering the global namespace
del
_files
,
_m
,
_modules
openfold/utils/__init__.py
View file @
426555e9
import
os
import
glob
import
importlib
as
importlib
from
.
import
kernel
_files
=
glob
.
glob
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"*.py"
))
__all__
=
[
os
.
path
.
basename
(
f
)[:
-
3
]
for
f
in
_files
if
os
.
path
.
isfile
(
f
)
and
not
f
.
endswith
(
"__init__.py"
)
]
+
[
"kernel"
]
_modules
=
[(
m
,
importlib
.
import_module
(
"."
+
m
,
__name__
))
for
m
in
__all__
]
for
_m
in
_modules
:
globals
()[
_m
[
0
]]
=
_m
[
1
]
# Avoid needlessly cluttering the global namespace
del
_files
,
_m
,
_modules
thread_sequence.py
View file @
426555e9
...
...
@@ -38,9 +38,9 @@ def main(args):
config
=
model_config
(
args
.
config_preset
)
#TODO make configurable
random_seed
=
random
.
randrange
(
2
**
32
)
random_seed
=
args
.
data_random_seed
if
random_seed
is
None
:
random_seed
=
random
.
randrange
(
2
**
32
)
numpy
.
random
.
seed
(
random_seed
)
torch
.
manual_seed
(
random_seed
+
1
)
...
...
@@ -150,6 +150,10 @@ if __name__ == "__main__":
of the pLDDT itself"""
)
parser
.
add_argument
(
"--data_random_seed"
,
type
=
str
,
default
=
None
)
add_data_args
(
parser
)
args
=
parser
.
parse_args
()
...
...
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