From e0f1776516ff1208aff313fe5c03bb08143e300c Mon Sep 17 00:00:00 2001 From: Sakib Matin <83463357+sakibmatin@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:01:14 -0600 Subject: [PATCH] avoid syntax error warning when loading The \pi in the doc string triggers the warning SyntaxWarning: invalid escape sequence '\p' --- hippynn/layers/physics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hippynn/layers/physics.py b/hippynn/layers/physics.py index aed1110e..cc9e457e 100644 --- a/hippynn/layers/physics.py +++ b/hippynn/layers/physics.py @@ -206,7 +206,7 @@ def forward(self, pair_dist, radius): class LocalDampingCosine(AlphaScreening): """ Local damping using complement of the hipnn cutoff function. ('glue-on' method) g = 1 if pair_dist > R_cutoff - 1 - [cos(\pi/2 * dist * R_cutoff)]^2 otherwise + 1 - [cos(pi/2 * dist * R_cutoff)]^2 otherwise """ def __init__(self, alpha): """