[bugs fixed and found] dataprocessing doesn't work as expected, np.bool_ substituted by bool

This commit is contained in:
2016-09-15 14:51:11 +02:00
parent 15700b074d
commit c8d8525c11
2 changed files with 11 additions and 4 deletions

View File

@@ -353,7 +353,7 @@ def calcsourcespec(wfstream, onset, inventory, vp, delta, azimuth, incidence, qp
wf_copy = wfstream.copy()
[cordat, restflag] = restitute_data(wf_copy, inventory)
if restflag == 1:
if restflag is True:
zdat = cordat.select(component="Z")
if len(zdat) == 0:
zdat = cordat.select(component="3")