Skip to content
Snippets Groups Projects
Commit 5dcfa25e authored by Kien Le's avatar Kien Le
Browse files

Change name to be more readable

parent 733a7a82
No related branches found
No related tags found
1 merge request!56Extract GPS data for Q330
Pipeline #2087 passed with stage
in 3 minutes and 29 seconds
...@@ -380,13 +380,13 @@ class MSeed(DataTypeModel): ...@@ -380,13 +380,13 @@ class MSeed(DataTypeModel):
# Start pass the end of the string and look backward one # Start pass the end of the string and look backward one
# index every iteration so we don't have to add 1 to the # index every iteration so we don't have to add 1 to the
# final index. # final index.
i = len(height_str) current_idx = len(height_str)
current_char = height_str[i - 1] current_char = height_str[current_idx - 1]
while current_char != '.' and not current_char.isnumeric(): while current_char != '.' and not current_char.isnumeric():
i -= 1 current_idx -= 1
current_char = height_str[i - 1] current_char = height_str[current_idx - 1]
height = float(height_str[:i]) height = float(height_str[:current_idx])
height_unit = height_str[i:] height_unit = height_str[current_idx:]
# Latitude and longitude are encoded in the format # Latitude and longitude are encoded in the format
# <degree><decimal minute><cardinal direction>. For # <degree><decimal minute><cardinal direction>. For
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment