From 5846b452e00d0700773af8ec88528aabaff64d38 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Wed, 15 May 2024 22:09:09 -0400 Subject: [PATCH] fix: fix `SyntaxWarning: invalid escape sequence` Signed-off-by: Jinzhe Zeng --- dpgen/auto_test/Gamma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpgen/auto_test/Gamma.py b/dpgen/auto_test/Gamma.py index 2499717eb..470e77b65 100644 --- a/dpgen/auto_test/Gamma.py +++ b/dpgen/auto_test/Gamma.py @@ -386,7 +386,7 @@ def __inLammpes_fix(self, inLammps) -> None: with open(inLammps) as fin1: contents = fin1.readlines() for ii in range(len(contents)): - upper = re.search("variable N equal count\(all\)", contents[ii]) + upper = re.search(r"variable N equal count\(all\)", contents[ii]) lower = re.search("min_style cg", contents[ii]) if lower: lower_id = ii