Closed manodeep closed 7 years ago
This really is an issue when the user tries to use the extension directly, rather than going through the corresponding python wrapper within Corrfunc
.
Since the user should really be only accessing the python wrappers to the extensions, and not the extensions directly, I am closing this.
Currently the input parameter parsing is sub-optimal. All the arguments are also noted as keywords and the input parameters are only parsed once. However, if
autocorr==1
, then theX2/Y2/Z2
arrays are not required. This causes issue with passingNone
as theX2/Y2/Z2
arrays from the python wrappers. Correct solution would be to parse the arguments once with positional args only and then parse the arguments again based on the entire keywords list. This parsing might need to use a different keyword list based on the value ofautocorr
.The changes will have to be made in
python_bindings
for boththeory
andmocks
.