Browse Source

ids bugfix loading curved fault

pull/4/head
mmetz 1 year ago
parent
commit
d83730ebdb
  1. 7
      src/io/ids.py
  2. 2
      src/si/ids/dataset.py

7
src/io/ids.py

@ -1000,7 +1000,12 @@ def load_ids_source(config_fn):
moments=moments,
rundir=rundir)
if num.unique(lns).shape[0] > 1 or num.unique(wds).shape[0] > 1:
curved = False
if len(set(strike)) > 1 or len(set(dip)) > 1 or len(set(rake)) or
len(set(lns)) > 1 or len(set(wds)) > 1:
curved = True
if curved:
source = load_curved_source(**kwargs_source)
else:
kwargs_source.update(dict(

2
src/si/ids/dataset.py

@ -198,7 +198,7 @@ class Dataset(Object):
for traces in p.chopper_grouped(
gather=lambda tr: tr.nslc_id, want_incomplete=False,
tmin=time_range[0]-t_fade, tmax=time_range[1]+t_fade,
include_last=True):
include_last=False):
for tr in traces:
if tr.nslc_id[:3] not in stations_relevant:

Loading…
Cancel
Save