Skip to content

Commit 80be865

Browse files
authored
Updated filter normalization
1 parent be55f2e commit 80be865

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HOMER.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def HOMER(cfile):
435435
bounds_error=False, fill_value=0)
436436
# Interpolate and normalize
437437
tranfilt = finterp(xwn)
438-
tranfilt = tranfilt / np.trapz(tranfilt, xwn)
438+
tranfilt = tranfilt / np.abs(np.trapz(tranfilt, xwn))
439439
meanwn.append(np.sum(xwn*tranfilt)/sum(tranfilt))
440440
# Find non-zero indices for faster integration
441441
nonzero = np.where(tranfilt!=0)

0 commit comments

Comments
 (0)