Skip to content

Commit

Permalink
fix: πŸ› invalid escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
noshita committed Mar 12, 2024
1 parent cbb4967 commit 394464d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ktch/io/_tps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -234,7 +233,7 @@ def write_tps(
)

PTN_DICT = re.compile(r"^(?P<key>\w+)\s*=\s*(?P<value>.+)$")
PTN_COORD = re.compile("^(?P<x>[0-9\-\.]*)\s(?P<y>[0-9\-\.]*)\s*(?P<z>[0-9\-\.]*)?$")
PTN_COORD = re.compile(r"^(?P<x>[0-9-\.]*)\s(?P<y>[0-9-\.]*)\s*(?P<z>[0-9-\.]*)?$")

######################################
# Helper functions #
Expand Down

0 comments on commit 394464d

Please sign in to comment.