Skip to content

Commit

Permalink
raw string regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Nov 13, 2024
1 parent 1e99b0f commit 1a2cfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carsus/io/vald/vald.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def read_vald_raw(self, fname=None):
# Elm Ion WL_air(A) log gf* E_low(eV) J lo E_up(eV) J up lower upper mean Rad. Stark Waals
# 'TiO 1', 4100.00020, -11.472, 0.2011, 31.0, 3.2242, 32.0, 99.000, 99.000, 99.000, 6.962, 0.000, 0.000,

DATA_RE_PATTERN = re.compile("'[a-zA-Z]+\d* \d+',[\s*-?\d+[\.\d+]+,]*")
DATA_RE_PATTERN = re.compile(r"'[a-zA-Z]+\d* \d+',[\s*-?\d+[\.\d+]+,]*")

buffer, checksum = read_from_buffer(self.fname)
content = buffer.read().decode()
Expand Down

0 comments on commit 1a2cfe4

Please sign in to comment.