Skip to content

Commit

Permalink
specify features affected
Browse files Browse the repository at this point in the history
  • Loading branch information
gcroci2 committed Mar 18, 2024
1 parent 13b9f0a commit 1fc6f63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deeprank2/utils/parsing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def get_vanderwaals_parameters(self, atom: Atom) -> VanderwaalsParam:
if type_ is None:
_log.warning(
f"Atom {atom} is unknown to the forcefield, vanderwaals_parameters set to (0.0, 0.0, 0.0, 0.0).\n \
Check https://deeprank2.readthedocs.io/en/latest/features.html#nonbond-energies for more details.",
This will affect `vanderwaals` feature.\n \
Check https://deeprank2.readthedocs.io/en/latest/features.html#nonbond-energies for more details.",
)
return VanderwaalsParam(0.0, 0.0, 0.0, 0.0)
return self._vanderwaals_parameters[type_]
Expand Down Expand Up @@ -99,7 +100,8 @@ def get_charge(self, atom: Atom) -> float:
if charge is None:
_log.warning(
f"Atom {atom} is unknown to the forcefield, charge is set to 0.0. \n \
Check https://deeprank2.readthedocs.io/en/latest/features.html#nonbond-energies for more details.",
This will affect `electrostatic` and `atom_charge` features.\n \
Check https://deeprank2.readthedocs.io/en/latest/features.html#nonbond-energies for more details.",
)
return 0.0
return charge
Expand Down

0 comments on commit 1fc6f63

Please sign in to comment.