[change] replace NaN's in HOScf by first NaN value instead of zero
This commit is contained in:
parent
0852bf0f80
commit
5648fc1870
@ -296,9 +296,11 @@ class HOScf(CharacteristicFunction):
|
||||
elif self.getOrder() == 4:
|
||||
LTA[j] = lta / np.power(lta1, 2)
|
||||
|
||||
nn = np.isnan(LTA)
|
||||
if len(nn) > 1:
|
||||
LTA[nn] = 0
|
||||
# remove NaN's with first not-NaN-value,
|
||||
# so autopicker doesnt pick discontinuity at start of the trace
|
||||
ind = np.where(~np.isnan(LTA))[0]
|
||||
first = ind[0]
|
||||
LTA[:first] = LTA[first]
|
||||
self.cf = LTA
|
||||
self.xcf = x
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user