I installed corrfunc using the instructions provided in https://corrfunc.readthedocs.io/en/master/install.html
##--- this is my script to compute the correlation function
import numpy as np
import Corrfunc
from Corrfunc.theory import *
from Corrfunc.theory.xi import xi
file_halos = np.loadtxt('m_xyz.dat')
boxsize=1024
nthreads = 4
x = file_halos[:,1]
y = file_halos[:,2]
z = file_halos[:,3]
rmin = 0.1
rmax = 20.0
nbins = 20
rbins = np.logspace(np.log10(rmin), np.log10(rmax), nbins + 1)
results_xi = xi(boxsize, nthreads, rbins, x, y, z)
I am getting the following error: Could not import the C extension for the projected correlation function.
I am using Python 3.9.18
numpy 1.26.4
conda 24.3.0
Thank you in advance :)
I installed corrfunc using the instructions provided in https://corrfunc.readthedocs.io/en/master/install.html
##--- this is my script to compute the correlation function
import numpy as np
import Corrfunc
from Corrfunc.theory import *
from Corrfunc.theory.xi import xi
file_halos = np.loadtxt('m_xyz.dat')
boxsize=1024
nthreads = 4
x = file_halos[:,1]
y = file_halos[:,2]
z = file_halos[:,3]
rmin = 0.1
rmax = 20.0
nbins = 20
rbins = np.logspace(np.log10(rmin), np.log10(rmax), nbins + 1)
results_xi = xi(boxsize, nthreads, rbins, x, y, z)
I am getting the following error: Could not import the C extension for the projected correlation function.
I am using Python 3.9.18
numpy 1.26.4
conda 24.3.0
Thank you in advance :)