Skip to content

Commit

Permalink
Merge pull request #465 from DeepRank/463_fix_preprocess
Browse files Browse the repository at this point in the history
fix: cast `hse` feature to float64
  • Loading branch information
gcroci2 authored Aug 23, 2023
2 parents b152a4b + 07b17d3 commit 4091a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deeprankcore/features/exposure.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ def add_features( # pylint: disable=unused-argument
hse_key = (residue.chain.id, (" ", residue.number, space_if_none(residue.insertion_code)))

if hse_key in hse:
node.features[Nfeat.HSE] = hse[hse_key]
node.features[Nfeat.HSE] = np.array(hse[hse_key], dtype=np.float64)
else:
node.features[Nfeat.HSE] = np.array((0, 0, 0))
node.features[Nfeat.HSE] = np.array((0, 0, 0), dtype=np.float64)

0 comments on commit 4091a9e

Please sign in to comment.