Skip to content

Commit

Permalink
Merge pull request #199 from lpsinger/const-correctness-numpy-loop-fu…
Browse files Browse the repository at this point in the history
…nction-args
  • Loading branch information
astrofrog authored Nov 18, 2023
2 parents 3d88e85 + ccf6d9e commit 855a8f9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions astropy_healpix/_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static int pixel_nside_valid(int64_t pixel, int nside)


static void healpix_to_lonlat_loop(
char **args, npy_intp *dimensions, npy_intp *steps, void *data)
char **args, const npy_intp *dimensions, const npy_intp *steps, void *data)
{
order_funcs *funcs = data;
npy_intp i, n = dimensions[0];
Expand Down Expand Up @@ -77,7 +77,7 @@ static void healpix_to_lonlat_loop(


static void lonlat_to_healpix_loop(
char **args, npy_intp *dimensions, npy_intp *steps, void *data)
char **args, const npy_intp *dimensions, const npy_intp *steps, void *data)
{
order_funcs *funcs = data;
npy_intp i, n = dimensions[0];
Expand Down Expand Up @@ -105,7 +105,7 @@ static void lonlat_to_healpix_loop(


static void healpix_to_xyz_loop(
char **args, npy_intp *dimensions, npy_intp *steps, void *data)
char **args, const npy_intp *dimensions, const npy_intp *steps, void *data)
{
order_funcs *funcs = data;
npy_intp i, n = dimensions[0];
Expand Down Expand Up @@ -136,7 +136,7 @@ static void healpix_to_xyz_loop(


static void xyz_to_healpix_loop(
char **args, npy_intp *dimensions, npy_intp *steps, void *data)
char **args, const npy_intp *dimensions, const npy_intp *steps, void *data)
{
order_funcs *funcs = data;
npy_intp i, n = dimensions[0];
Expand Down Expand Up @@ -171,7 +171,7 @@ static void xyz_to_healpix_loop(


static void nested_to_ring_loop(
char **args, npy_intp *dimensions, npy_intp *steps, void *data)
char **args, const npy_intp *dimensions, const npy_intp *steps, void *data)
{
npy_intp i, n = dimensions[0];

Expand All @@ -195,7 +195,7 @@ static void nested_to_ring_loop(


static void ring_to_nested_loop(
char **args, npy_intp *dimensions, npy_intp *steps, void *data)
char **args, const npy_intp *dimensions, const npy_intp *steps, void *data)
{
npy_intp i, n = dimensions[0];

Expand All @@ -219,7 +219,7 @@ static void ring_to_nested_loop(


static void bilinear_interpolation_weights_loop(
char **args, npy_intp *dimensions, npy_intp *steps, void *data)
char **args, const npy_intp *dimensions, const npy_intp *steps, void *data)
{
npy_intp i, n = dimensions[0];

Expand All @@ -243,7 +243,7 @@ static void bilinear_interpolation_weights_loop(


static void neighbours_loop(
char **args, npy_intp *dimensions, npy_intp *steps, void *data)
char **args, const npy_intp *dimensions, const npy_intp *steps, void *data)
{
order_funcs *funcs = data;
npy_intp i, n = dimensions[0];
Expand Down

0 comments on commit 855a8f9

Please sign in to comment.