Closed spxiwh closed 2 years ago
@spxiwh You can assign to me if you like. This is a case where we should re-enable the sampler test for cpnest. (it was not enabled initially as cpnest doesn't work in python2 so was a pain to handle when we were still supporting that). I think we can just advance to the most recent cpnest release. They do not appear to occur that often.
i.e. update here to include the cpnest minimal example https://github.com/gwastro/pycbc/blob/master/examples/inference/samplers/run.sh
This has been fixed for some time.
I was playing around with
cpnest
and hit a problem with this line https://github.com/gwastro/pycbc/blob/master/pycbc/inference/sampler/cpnest.py#L230Looking over the cpnest source code this function is actually a direct call to a
cdef
ed function in Cython where all inputs must be certain types. Strangely it wants the input to be anarray.array
object, which I've never used before but seems a "not as good as numpy array, array". To fix this the second argument becomes:However, I'm not proposing this as a pull request at the moment because I don't know what version of cpnest this changed in, which may set a specific version to be required. Who is responsible for cpnest to assign this to?