obspy/obspy — pull request #456 by mbyt (2012-12-09 15:14:50+00:00)
Title: FloatingPointError: invalid value encountered in ...

from http://tests.obspy.org/?id=2598

```python
Traceback (most recent call last):
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/core/tests/test_trace.py", line 1024, in test_taper
tr.taper()
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/core/trace.py", line 1760, in taper
self.data = self.data * func(self.stats.npts, *args, **kwargs)
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/signal/invsim.py", line 113, in cosTaper
(np.arange(idx1, idx2 + 1) - idx1) / (idx2 - idx1))))
FloatingPointError: invalid value encountered in divide
```

```python
Traceback (most recent call last):
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/signal/tests/test_tf_misfit.py", line 207, in test_envelope_gof
TFEG = tfeg(S1(t), S1(t), dt=dt, fmin=fmin, fmax=fmax, nf=nf)
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/signal/tf_misfit.py", line 607, in tfeg
st2_isref=st2_isref)
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/signal/tf_misfit.py", line 100, in tfem
W1 = np.empty((1, nf, st1.shape[0])) * 0j
FloatingPointError: invalid value encountered in multiply
```

```python
Traceback (most recent call last):
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/signal/tests/test_tf_misfit.py", line 153, in test_envelope_misfit
TFEM_11a = tfem(S1a(t), S1(t), dt=dt, fmin=fmin, fmax=fmax, nf=nf)
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/signal/tf_misfit.py", line 100, in tfem
W1 = np.empty((1, nf, st1.shape[0])) * 0j
FloatingPointError: invalid value encountered in multiply
```

````python
Traceback (most recent call last):
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/signal/tests/test_tf_misfit.py", line 92, in test_phase_misfit
TFEM_11p = tfem(s1p, S1(t), dt=dt, fmin=fmin, fmax=fmax, nf=nf)
File "/tmp/tmp.jLYqwDasQO/lib/python2.7/site-packages/obspy-tar_zipball.dev-py2.7-linux-x86_64.egg/obspy/signal/tf_misfit.py", line 100, in tfem
W1 = np.empty((1, nf, st1.shape[0])) * 0j
FloatingPointError: invalid value encountered in multiply
```

Any ideas?