Skip to content

Commit

Permalink
An attempt (#3) to figure out failing tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Dec 9, 2024
1 parent 1b2cd84 commit fa56509
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cdrizzleapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ process_array_list(PyObject *list, integer_t *nx, integer_t *ny,
PyArrayObject *arr = NULL;
int i, at_least_one;

// *nx = -1;
// *ny = -1;
*arrays = NULL;
*nmax = 0;
if (n_none) {
Expand Down Expand Up @@ -93,6 +91,13 @@ process_array_list(PyObject *list, integer_t *nx, integer_t *ny,
*nx = (int)ndim[1];
*ny = (int)ndim[0];
*arrays = arr_list;
for (int i = 0; i < (*nmax); ++i) {
if (!(*arrays)[i]) {
driz_error_set(error, PyExc_ValueError,
"Some of the 'out2_list' arrays are NULL!");
goto _exit_on_err;
}
}
return 0;

} else if (!PyList_Check(list) && !PyTuple_Check(list)) {
Expand Down

0 comments on commit fa56509

Please sign in to comment.