Open Thomas-JACQUOT opened 3 hours ago
@Thomas-JACQUOT I don't this is a numpy version issue. Doing numpy.uint32(-19)
is a bug (if one really wants the wraparound, it can be done with % MAX_UINT_32, but I'm pretty sure that 4294967277 is not intended here).
I think the problem is here: https://github.com/gwastro/pycbc/blob/master/bin/pycbc_multi_inspiral#L694-L696. We are doing
idx[ifo] - time_delay_idx[slide][position_index][ifo] < len(snr_dict[ifo])
when in reality we should do
idx[ifo] < time_delay_idx[slide][position_index][ifo] + len(snr_dict[ifo])
I was running some tests by following this repository and most part of my jobs failed and gave me this error :
I've found out thanks to test that this error is coming from my numpy version (2.1.3) as the following code is showing it :
And by changing the version of numpy the problem does not exist anymore :
So I think something can be improve in
pycbc_multi_inspiral
to avoid this error for the future ?