From 394464d84c1ec0da8fd50c12bd4a93c80afbe31c Mon Sep 17 00:00:00 2001 From: Koji Noshita Date: Tue, 12 Mar 2024 22:26:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20invalid=20escape=20sequen?= =?UTF-8?q?ce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ktch/io/_tps.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ktch/io/_tps.py b/ktch/io/_tps.py index 537354a..a031bdd 100644 --- a/ktch/io/_tps.py +++ b/ktch/io/_tps.py @@ -15,13 +15,12 @@ # limitations under the License. import re -from pathlib import Path from dataclasses import dataclass +from pathlib import Path import numpy as np -import pandas as pd import numpy.typing as npt - +import pandas as pd #################################### # TPS dataclass @@ -234,7 +233,7 @@ def write_tps( ) PTN_DICT = re.compile(r"^(?P\w+)\s*=\s*(?P.+)$") -PTN_COORD = re.compile("^(?P[0-9\-\.]*)\s(?P[0-9\-\.]*)\s*(?P[0-9\-\.]*)?$") +PTN_COORD = re.compile(r"^(?P[0-9-\.]*)\s(?P[0-9-\.]*)\s*(?P[0-9-\.]*)?$") ###################################### # Helper functions #