Skip to content

Commit

Permalink
fix SyntaxWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rieder committed Oct 24, 2024
1 parent 2f788f3 commit fb6bc71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/amuse/io/nemotsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self):

def return_numbers_in_brackets(self, line):
numbers = []
indices = re.findall('\[[0-9]*\]',line)
indices = re.findall(r'\[[0-9]*\]',line)
for i in indices:
numbers.append((int)(i.strip('[').strip(']')))
return numbers
Expand Down
2 changes: 1 addition & 1 deletion src/amuse/io/phigrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_values_from_phase_line(self, line):
"""
The regexp is grouping, therefore we add strings in the following code..
"""
values = re.findall('([-+])?([0-9]+(\.[0-9]*)?|\.[0-9]+)([eE][-+]?[0-9]+)?',line)
values = re.findall(r'([-+])?([0-9]+(\.[0-9]*)?|\.[0-9]+)([eE][-+]?[0-9]+)?',line)
args = ()
n = int(values[0][1])
m = float(values[1][1]+values[1][3])
Expand Down

0 comments on commit fb6bc71

Please sign in to comment.