Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi Chen committed Jul 27, 2020
1 parent 9915585 commit 12da3f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions megnet/data/molecule.py
Expand Up @@ -357,7 +357,7 @@ def create_bond_feature(mol, bid: int, eid: int) -> Dict:
return {"a_idx": bid,
"b_idx": eid,
"bond_type": 0,
"same_ring": same_ring,
"same_ring": bool(same_ring),
"spatial_distance": a1.GetDistance(a2)}

def get_pair_feature(self, mol, bid: int,
Expand Down Expand Up @@ -390,7 +390,7 @@ def get_pair_feature(self, mol, bid: int,
return {"a_idx": bid,
"b_idx": eid,
"bond_type": 4 if bond.IsAromatic() else bond.GetBondOrder(),
"same_ring": same_ring,
"same_ring": bool(same_ring),
"spatial_distance": a1.GetDistance(a2)}

@staticmethod
Expand Down
5 changes: 3 additions & 2 deletions pylintrc
Expand Up @@ -7,7 +7,7 @@ extension-pkg-whitelist=numpy, rdkit, pybel, openbabel

# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=R0201
ignore=

# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
Expand Down Expand Up @@ -159,7 +159,8 @@ disable=print-statement,
R0901,
C0415,
C0330,
C0302
C0302,
R0201

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down

0 comments on commit 12da3f9

Please sign in to comment.