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
abd78418
Commit
abd78418
authored
Sep 30, 2021
by
Gustaf Ahdritz
Browse files
Work on import infrastructure
parent
bb5b4b5c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
70 additions
and
2 deletions
+70
-2
openfold/__init__.py
openfold/__init__.py
+4
-0
openfold/model/__init__.py
openfold/model/__init__.py
+15
-0
openfold/np/__init__.py
openfold/np/__init__.py
+19
-0
openfold/np/relax/__init__.py
openfold/np/relax/__init__.py
+15
-0
openfold/utils/__init__.py
openfold/utils/__init__.py
+15
-0
openfold/utils/loss.py
openfold/utils/loss.py
+0
-1
setup.py
setup.py
+2
-1
No files found.
openfold/__init__.py
View file @
abd78418
from
.
import
model
from
.
import
utils
from
.
import
np
__all__
=
[
"model"
,
"utils"
,
"np"
]
openfold/model/__init__.py
View file @
abd78418
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 @
abd78418
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
from
.
import
relax
__all__
.
extend
([
"relax"
])
openfold/np/relax/__init__.py
View file @
abd78418
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 @
abd78418
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/loss.py
View file @
abd78418
...
...
@@ -21,7 +21,6 @@ import torch.nn as nn
from
typing
import
Dict
,
Optional
from
openfold.np
import
residue_constants
from
openfold.model.primitives
import
Linear
from
openfold.utils
import
feats
from
openfold.utils.affine_utils
import
T
from
openfold.utils.tensor_utils
import
(
...
...
setup.py
View file @
abd78418
...
...
@@ -23,7 +23,8 @@ setup(
author_email
=
'gahdritz@gmail.com'
,
license
=
'Apache License, Version 2.0'
,
url
=
'https://github.com/aqlaboratory/openfold'
,
packages
=
find_packages
(),
packages
=
find_packages
(
where
=
"openfold"
),
package_dir
=
{
""
:
"openfold"
},
install_requires
=
[
'torch'
,
'deepspeed'
,
...
...
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