I have reverted the correlate function (not the Correlator, so pycbc_inspiral still used it), so the match function will use the old correlate_inline.
(from Riccardo)
Hi All,
I'm trying to compute overlaps in pycbc.
While in the past it has been as straightforward as
hp, hc = get_td_waveform(coa_phase=phiRef, delta_t=dT, mass1=m1,
mass2=m2, f_lower=fLow, distance=dist, inclination=inc,
approximant=apprxStr)
overlap, idxM = match(hp, hc, low_frequency_cutoff=fLow)
using present master version I hit the following error:
/tmp/1000_python27_compiled/sc_ce6a0f08bc653d0518ec8e7d5816a62311.cpp:
In function โPyObject* compiled_func(PyObject_, PyObject_)โ:
/tmp/1000_python27_compiled/sc_ce6a0f08bc653d0518ec8e7d5816a62311.cpp:1070:82:
error: cannot convert โstd::complexโ to
โstd::complexโ for argument โ1โ to โvoid
ccorrf_parallel(std::complex, std::complex,
std::complex*, uint32_t, uint32_t)โ
ccorrf_parallel(htilde, stilde, qtilde, (uint32_t) arrlen,
(uint32_t) segsize);
/tmp/1000_python27_compiled/sc_ce6a0f08bc653d0518ec8e7d5816a62311.cpp:
In function โPyObject* compiled_func(PyObject_, PyObject_)โ:
/tmp/1000_python27_compiled/sc_ce6a0f08bc653d0518ec8e7d5816a62311.cpp:1070:82:
error: cannot convert โstd::complexโ to
โstd::complexโ for argument โ1โ to โvoid
ccorrf_parallel(std::complex, std::complex,
std::complex*, uint32_t, uint32_t)โ
ccorrf_parallel(htilde, stilde, qtilde, (uint32_t) arrlen,
(uint32_t) segsize);
Traceback (most recent call last):
File "checkEOBNRv2.py", line 54, in
overlap, idxM = match(hpM_tilde, hpM_tilde, low_frequency_cutoff=fLow)
File "/home/riccardo/lvc/lscsoft/opt/EOBNRv2review/pycbc/lib/python2.7/site-packages/pycbc/filter/matchedfilter.py",
line 677, in match
high_frequency_cutoff, v1_norm, out=_snr)
File "/home/riccardo/lvc/lscsoft/opt/EOBNRv2review/pycbc/lib/python2.7/site-packages/pycbc/filter/matchedfilter.py",
line 557, in matched_filter_core
correlate(htilde[kmin:kmax], stilde[kmin:kmax], _qtilde[kmin:kmax])
File "", line 2, in correlate
File "/home/riccardo/lvc/lscsoft/opt/EOBNRv2review/pycbc/lib/python2.7/site-packages/pycbc/scheme.py",
line 172, in scheming_function
return schemed_fn(_args, *_kwds)
File "/home/riccardo/lvc/lscsoft/opt/EOBNRv2review/pycbc/lib/python2.7/site-packages/pycbc/filter/simd_correlate.py",
line 400, in correlate_parallel
support_code = corr_support, auto_downcast = 1)
File "/usr/lib/python2.7/dist-packages/scipy/weave/inline_tools.py",
line 361, in inline
*_kw)
File "/usr/lib/python2.7/dist-packages/scipy/weave/inline_tools.py",
line 491, in compile_function
verbose=verbose, *_kw)
File "/usr/lib/python2.7/dist-packages/scipy/weave/ext_tools.py",
line 373, in compile
verbose=verbose, **kw)
File "/usr/lib/python2.7/dist-packages/scipy/weave/build_tools.py",
line 297, in build_extension
raise e
scipy.weave.build_tools.CompileError: error: Command "c++ -pthread
-fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -fPIC
-I/usr/lib/python2.7/dist-packages/scipy/weave
-I/usr/lib/python2.7/dist-packages/scipy/weave/scxx
-I/usr/lib/python2.7/dist-packages/numpy/core/include
-I/usr/include/python2.7 -c
/tmp/1000_python27_compiled/sc_ce6a0f08bc653d0518ec8e7d5816a62311.cpp
-o /tmp/scipy-riccardo-XzpoDg/python27_intermediate/compiler_8855277b295f576c423c618665ded9a0/tmp/1000_python27_compiled/sc_ce6a0f08bc653d0518ec8e7d5816a62311.o
-march=native -O3 -w -fopenmp" failed with exit status 1
Can anyone tell me what I am doing wrong?
Cheers,
Riccardo
P.S. I'm sorry I can't retrieve the git hash of the pycbc that worked
for me, but it should be master from last April or so.