Skip to content

Commit 2120927

Browse files
committed
Fix invalid escapes
1 parent e38e97f commit 2120927

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

template/1_modeling_wholeNPC.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,8 +1007,8 @@ def open_csv(fname):
10071007
class SAXSFits(object):
10081008
"""Parse the SAXS csv file and add suitable fit data to the mmCIF file"""
10091009
saxs_dir = '../input_data_files/SAXS'
1010-
seqrange_re = re.compile('(\d+)\s*\-\s*(\d+)')
1011-
sasbdb_re = re.compile('/data/(SASDB\w+)')
1010+
seqrange_re = re.compile(r'(\d+)\s*\-\s*(\d+)')
1011+
sasbdb_re = re.compile(r'/data/(SASDB\w+)')
10121012

10131013
def __init__(self, po):
10141014
self.po = po
@@ -1989,7 +1989,7 @@ def get_all_copies(self, protein):
19891989
sys.path.append('%s/Model_2B' % n96_dir)
19901990
from get_transformations import get_transformations, get_centroid
19911991
cccs = {}
1992-
pat = re.compile('Score (\S+) (\d+) ccc= ([\d.]+)')
1992+
pat = re.compile(r'Score (\S+) (\d+) ccc= ([\d.]+)')
19931993
with open('%s/Model_2B/C1_logs_35.txt' % n96_dir) as fh:
19941994
for match in pat.findall(fh.read()):
19951995
cccs[int(match[1])] = float(match[2])

0 commit comments

Comments
 (0)