Browse Source

Merge branch 'master' into python3

template_parallel
Marius Kriegerowski 3 years ago
parent
commit
c6b649efae
3 changed files with 10 additions and 3 deletions
  1. +1
    -1
      README.md
  2. +4
    -1
      src/shifter.py
  3. +5
    -1
      src/snuffling.py

+ 1
- 1
README.md View File

@ -4,7 +4,7 @@
## Installation
First, install [Pyrocko](http://emolch.github.io/pyrocko/v0.3/install.html),
First, install [Pyrocko](http://pyrocko.org/current/install.html),
then install Lassie:
```bash


+ 4
- 1
src/shifter.py View File

@ -87,7 +87,10 @@ class CakePhaseShifter(Shifter):
def get_vmin(self):
vs = self.get_earthmodel().profile('vs')
return num.min(vs[vs != 0.0])
vp = self.get_earthmodel().profile('vp')
v = num.concatenate((vs, vp))
vmin = num.min(v[v != 0.0])
return vmin
def ttt_path(self, ehash):
return op.join(self._cache_path, ehash + '.spit')


+ 5
- 1
src/snuffling.py View File

@ -291,8 +291,12 @@ def snuffle(config):
p = pile.make_pile(paths=paths, fileformat='detect')
meta = {'tabu': True}
for tr in p.iter_traces(trace_selector=lambda x: x.station == 'SMAX'):
tr.meta = {'tabu': True}
if tr.meta:
tr.meta.update(meta)
else:
tr.meta = meta
snuffler.snuffle(p, stations=stations,
launch_hook=load_snuffling)


Loading…
Cancel
Save