Skip to content

Commit

Permalink
add bin values in bin_stack
Browse files Browse the repository at this point in the history
  • Loading branch information
xumi1993 committed Feb 19, 2024
1 parent 7dc0a87 commit 1bbb48f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seispy/rfcorrect.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ def bin_stack(self, key='bazi', lim=[0, 360], val=10):
idx = np.digitize(self.__dict__[key], bins)
stacked = {
'data_prime': np.zeros([bins.size-1, self.rflength]),
'count': np.zeros(bins.size-1)
'count': np.zeros(bins.size-1),
'bins': bins[:-1]+val/2,
}
if not self.only_r:
stacked['datat'] = np.zeros([bins.size-1, self.rflength])
Expand Down

0 comments on commit 1bbb48f

Please sign in to comment.