Hello LSD experts,
running a LSD query in python:
for row in dbdir.query(Parameters + ' FROM
tpijun12(matchedto=hya16k,nmax=1,dmax=1.0), hya16k').iterate():
I'm getting a message which I do not understand but seems to only be a
warning:
No handlers could be found for logger "lsd.pool2"
Independently, that division is not protected against a null value of
self.len:
File "/a41217d5/LSD/stable/lib/python2.7/site-packages/lsd/pool2.py",
line 196, in progress_pct_nnl
pct = 100. *
self.at / self.len
I'm not sure what causes that error to happen, but I believe it
happens when the bounds are wrong and there are zero element to search.
Thanks,
Bertrand.
Error message:
Traceback (most recent call last):
File "./astrom-refs.py", line 34, in <module>
for row in dbdir.query(TgParHya + ',' + TgParPM + ' FROM
tpijun12(matchedto=hya16k,nmax=1,dmax=1.0), hya16k').iterate():
File
"/a41217d5/LSD/stable/lib/python2.7/site-packages/lsd/join_ops.py", line
1570, in iterate
_yield_empty=_yield_empty):
File
"/a41217d5/LSD/stable/lib/python2.7/site-packages/lsd/join_ops.py", line
1512, in execute
for result in pool.map_reduce_chain(partspecs.items(), kernels,
progress_callback=progress_callback):
File "/a41217d5/LSD/stable/lib/python2.7/site-packages/lsd/pool2.py",
line 591, in map_reduce_chain
send(obj)
IOError: [Errno 32] Broken pipe
for r in self.imap_unordered(input, K_fun, K_args,
progress_callback=progress_callback, progress_callback_stage=stage):
File "/a41217d5/LSD/stable/lib/python2.7/site-packages/lsd/pool2.py",
line 398, in imap_unordered
progress_callback(progress_callback_stage, 'step', input, k, None)
File "/a41217d5/LSD/stable/lib/python2.7/site-packages/lsd/pool2.py",
line 166, in progress_default
self.dispatch(stage, step, input, index, result)
File "/a41217d5/LSD/stable/lib/python2.7/site-packages/lsd/pool2.py",
line 169, in progress_pct
running = progress_pct_nnl(stage, step, input, index, result)
File "/a41217d5/LSD/stable/lib/python2.7/site-packages/lsd/pool2.py",
line 196, in progress_pct_nnl
pct = 100. *
self.at / self.len
ZeroDivisionError: float division by zero