<div dir="ltr">Dear all.<div>I am trying to process some data using yam. Prior to the correlation, I removed the response of the data and downsampled it to 20Hz.</div><div> when I call yam correlate 1, this is the error I get:</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">(obspy) pb-vicic:proc_2 bvicic$ yam correlate 1</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>0%| <span class="inbox-inbox-Apple-converted-space"> </span>| 0/730 [00:00<?, ?it/s]multiprocessing.pool.RemoteTraceback:<span class="inbox-inbox-Apple-converted-space"> </span></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">"""</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/multiprocessing/pool.py", line 119, in worker</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>result = (True, func(*args, **kwds))</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/correlate.py", line 549, in correlate</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>**preprocessing_kwargs)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/correlate.py", line 392, in preprocess</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>stream.traces = start_parallel_jobs_inner_loop(stream, do_work, njobs)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/correlate.py", line 26, in start_parallel_jobs_inner_loop</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>results = [do_work(task) for task in tasks]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/correlate.py", line 26, in <listcomp></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>results = [do_work(task) for task in tasks]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/correlate.py", line 310, in _prep1</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>interpolate_options=interpolate_options)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/correlate.py", line 266, in _downsample_and_shift</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>dt = 1 / target_sr</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">ZeroDivisionError: division by zero</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">"""</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961);min-height:14px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">The above exception was the direct cause of the following exception:</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961);min-height:14px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/bin/yam", line 11, in <module></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>sys.exit(run_cmdline())</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/main.py", line 388, in run_cmdline</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>run(**args)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/main.py", line 147, in run</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>run2(command, **args)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/main.py", line 211, in run2</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>yam.commands.start_correlate(io, **args)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/yam/commands.py", line 101, in start_correlate</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>total=len(tasks)):</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/tqdm/_tqdm.py", line 930, in __iter__</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>for obj in iterable:</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/multiprocessing/pool.py", line 735, in next</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>raise value</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">ZeroDivisionError: division by zero</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">Exception ignored in: <bound method tqdm.__del__ of <span class="inbox-inbox-Apple-converted-space"> </span>0%| <span class="inbox-inbox-Apple-converted-space"> </span>| 0/730 [00:00<?, ?it/s]></span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/tqdm/_tqdm.py", line 882, in __del__</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/tqdm/_tqdm.py", line 1087, in close</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/site-packages/tqdm/_tqdm.py", line 439, in _decr_instances</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures"><span class="inbox-inbox-Apple-converted-space"> </span>File "/Users/bvicic/anaconda3/envs/obspy/lib/python3.6/_weakrefset.py", line 109, in remove</span></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">KeyError: <weakref at 0x10dd03b88; to 'tqdm' at 0x10dd13cf8></span></p>
<br class="inbox-inbox-Apple-interchange-newline"></div><div>any idea whats going on here? I changed the data with the originals and added remove response and downsample to config, but the error is same.</div><div><br></div><div>the example works though. </div><div><br></div><div>Thanks,</div><div>blaz</div></div>