Skip to content

Commit

Permalink
squash into 7786f46
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBodor committed Sep 22, 2023
1 parent d039645 commit 131ea78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deeprank2/molstruct/aminoacid.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from enum import Enum

import numpy as np
from numpy.typing import NDArray


class Polarity(Enum):
Expand Down Expand Up @@ -108,7 +109,7 @@ def hydrogen_bond_acceptors(self) -> int:
return self._hydrogen_bond_acceptors

@property
def onehot(self) -> np.ndarray:
def onehot(self) -> NDArray:
if self._index is None:
raise ValueError(
f"Amino acid {self._name} index is not set, thus no onehot can be computed."
Expand Down

0 comments on commit 131ea78

Please sign in to comment.