@@ -56,10 +56,10 @@ def plot_noe(filename, line_color=None, line_width='1.0', advanced_coloring=0, s
56
56
if advanced_coloring == 1 :
57
57
cmd .set ("group_auto_mode" , 2 )
58
58
59
- rgx_assi = re .compile ("\s*[asignASIGN]+\s+.*" )
60
- rgx_or = re .compile ("\s*[orOR]+\s+.*" )
61
- rgx_bracket = re .compile ("(\(|\))" )
62
- rgx_tick = re .compile ("(\w)\ ' " )
59
+ rgx_assi = re .compile (r "\s*[asignASIGN]+\s+.*" )
60
+ rgx_or = re .compile (r "\s*[orOR]+\s+.*" )
61
+ rgx_bracket = re .compile (r "(\(|\))" )
62
+ rgx_tick = re .compile (r "(\w)'" )
63
63
64
64
restraint_line = None
65
65
restraint_block = []
@@ -68,17 +68,17 @@ def plot_noe(filename, line_color=None, line_width='1.0', advanced_coloring=0, s
68
68
for line in open (filename ):
69
69
if rgx_assi .match (line ):
70
70
if restraint_line :
71
- restraint_block .append (rgx_tick .sub ("\g<1>^" , rgx_bracket .sub (" " , restraint_line )))
71
+ restraint_block .append (rgx_tick .sub (r "\g<1>^" , rgx_bracket .sub (" " , restraint_line )))
72
72
restraints_blocks .append (restraint_block )
73
73
restraint_block = []
74
74
restraint_line = line
75
75
elif rgx_or .match (line ):
76
- restraint_block .append (rgx_tick .sub ("\g<1>^" , rgx_bracket .sub (" " , restraint_line )))
76
+ restraint_block .append (rgx_tick .sub (r "\g<1>^" , rgx_bracket .sub (" " , restraint_line )))
77
77
restraint_line = line
78
78
else :
79
79
restraint_line += line
80
80
81
- restraint_block .append (rgx_tick .sub ("\g<1>^" , rgx_bracket .sub (" " , restraint_line )))
81
+ restraint_block .append (rgx_tick .sub (r "\g<1>^" , rgx_bracket .sub (" " , restraint_line )))
82
82
restraints_blocks .append (restraint_block )
83
83
84
84
for restraint_block in restraints_blocks :
0 commit comments