Skip to content

Commit

Permalink
pip and angular weights in all pair counters, with fallback kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud De-Mattia committed Oct 14, 2021
1 parent 691d86c commit 8a25b9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions theory/python_bindings/_countpairs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2372,6 +2372,8 @@ static PyObject *countpairs_countpairs_s_mu(PyObject *self, PyObject *args, PyOb
&(options.c_api_timer),
&(options.instruction_set),
&weighting_method_str,
&PyArray_Type,&pair_weight_obj,
&PyArray_Type,&sep_pair_weight_obj,
&(options.bin_type))

) {
Expand Down
2 changes: 1 addition & 1 deletion utils/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ static inline int set_weight_struct(weight_struct* weight_st, const weight_metho
// index is 0 (first weights) or 1 (second weights)
weight_st->num_weights = num_weights;
if (num_weights > MAX_NUM_WEIGHTS) {
fprintf(stderr,"Error: %d weight arrays are provided, but only %d are suppored\n", num_weights, MAX_NUM_WEIGHTS);
fprintf(stderr,"Error: %d weight arrays are provided, but only %d are supported\n", num_weights, MAX_NUM_WEIGHTS);
return EXIT_FAILURE;
}
if (num_weights < 0) {
Expand Down

0 comments on commit 8a25b9b

Please sign in to comment.