Skip to content

Commit 6aee0c2

Browse files
committed
Fixing minor bug
1 parent 2a92242 commit 6aee0c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

seismic/receiver_fn/digitizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ def _load_profile(self):
115115
self._digitization_coords = []
116116
for i in np.arange(2, len(lines)): # two line header
117117
line = lines[i]
118-
print(line)
119-
px, py, lon, lat, depth = map(float, list(filter(len,re.split('\s+', line))))
118+
print(line.strip())
119+
px, py, lon, lat, distance, depth = map(float, list(filter(len,re.split('\s+', line))))
120120
px = int(px)
121121
py = int(py)
122-
self._digitization_coords.append([px, py, lon, lat, depth])
122+
self._digitization_coords.append([px, py, distance, depth])
123123
# end for
124124

125125
self.draw_digitization()

0 commit comments

Comments
 (0)