Skip to content

Commit

Permalink
Fixed bug with group_velocity processing.
Browse files Browse the repository at this point in the history
The function was not working properly due to remnant of old implementation not properly cleaned up.
  • Loading branch information
thurinj committed Sep 30, 2024
1 parent 078e165 commit 3f2acc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mtuq/process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,11 @@ def __call__(self, traces, station=None, origin=None, overwrite=False):
# alignment=0.0 - window starts at group arrival
# alignment=0.5 - window centered on group arrival (default)
# alignment=1.0 - window ends at group arrival
alignment = self.alignment
# alignment = self.alignment

starttime = group_arrival - self.window_length*window_alignment
starttime = group_arrival - self.window_length*self.window_alignment
endtime = group_arrival + \
self.window_length*(1.-window_alignment)
self.window_length*(1.-self.window_alignment)

starttime += float(origin.time)
endtime += float(origin.time)
Expand Down

0 comments on commit 3f2acc3

Please sign in to comment.