Skip to content

Commit

Permalink
Remove left over python debugger import
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHonan authored Jul 1, 2024
1 parent d0f890d commit ea024a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/GPS/makegpxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def makegpx(fname_in, fname_out, ftype_in="txt"):
if dotxt:

# Define a regular expression pattern to match the format of a string and two numbers and delims of spaces, commas or colons
pattern = re.compile(r'^(?P<name>[A-Za-z0-9.]+)[,\s:]+(?P<xy>\d{2}\.[0-9]+)[,\s:]+(?P<qw>\d{2}\.[0-9]+)\s*$')
pattern = re.compile(r'^(?P<name>[A-Za-z0-9.]+)[,\s:]+(?P<lat>\d{2}\.[0-9]+)[,\s:]+(?P<long>\d{2}\.[0-9]+)\s*$')

with open(fname_in, "r") as file:
nline = 0
Expand All @@ -24,7 +24,6 @@ def makegpx(fname_in, fname_out, ftype_in="txt"):
if match:
dict_loc.update({match.group(1).strip():(float(match.group(2)),float(match.group(3)))})
else:
import pdb; pdb.set_trace()
print("ERROR: Line {}. Format of names and lat/long unknown. Expected one string and two floats per line.".format(str(nline))); exit(0)

with open(fname_out, "w") as file:
Expand Down

0 comments on commit ea024a6

Please sign in to comment.