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
c46e97ca
Unverified
Commit
c46e97ca
authored
Nov 15, 2021
by
Gustaf Ahdritz
Committed by
GitHub
Nov 15, 2021
Browse files
Merge pull request #7 from cclauss/patch-1
GitHub Action to find undefined names in Python code
parents
d01f47af
f0655122
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
.github/workflows/undefined_names.yml
.github/workflows/undefined_names.yml
+11
-0
openfold/data/mmcif_parsing.py
openfold/data/mmcif_parsing.py
+1
-0
openfold/utils/feats.py
openfold/utils/feats.py
+3
-0
openfold/utils/loss.py
openfold/utils/loss.py
+1
-0
No files found.
.github/workflows/undefined_names.yml
0 → 100644
View file @
c46e97ca
name
:
undefined_names
on
:
[
pull_request
,
push
]
jobs
:
undefined_names
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-python@v2
-
run
:
pip install --upgrade pip
-
run
:
pip install flake8
-
run
:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
openfold/data/mmcif_parsing.py
View file @
c46e97ca
...
...
@@ -26,6 +26,7 @@ from Bio import PDB
from
Bio.Data
import
SCOPData
import
numpy
as
np
from
openfold.data.templates
import
MultipleChainsError
import
openfold.np.residue_constants
as
residue_constants
...
...
openfold/utils/feats.py
View file @
c46e97ca
...
...
@@ -13,11 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
math
import
numpy
as
np
import
torch
import
torch.nn
as
nn
from
typing
import
Dict
from
openfold.np
import
protein
import
openfold.np.residue_constants
as
rc
from
openfold.utils.affine_utils
import
T
from
openfold.utils.tensor_utils
import
(
...
...
openfold/utils/loss.py
View file @
c46e97ca
...
...
@@ -14,6 +14,7 @@
# limitations under the License.
from
functools
import
partial
import
logging
import
ml_collections
import
numpy
as
np
import
torch
...
...
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