NPY_ARRAY_UPDATEIFCOPY

139 views
Skip to first unread message

Michael Hoenig

unread,
Aug 2, 2022, 9:07:32 AM8/2/22
to astrometry
When trying to make py the latest version (0.89), I get a bunch of errors like:

util_wrap.c: In function ‘an_hist2d’:
util_wrap.c:3116:50: error: ‘NPY_ARRAY_UPDATEIFCOPY’ undeclared (first use in this function); did you mean ‘NPY_ITER_UPDATEIFCOPY’?
 3116 |         int reqout = req | NPY_ARRAY_WRITEABLE | NPY_ARRAY_UPDATEIFCOPY;
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~
      |                                                  NPY_ITER_UPDATEIFCOPY

It seems there are references to the deprecated NPY_ARRAY_UPDATEIFCOPY flag in lanczos.i, util.i and util_wrap.c.  Or am I doing something wrong?

Thanks,
Michael

Dustin Lang

unread,
Aug 2, 2022, 9:51:00 AM8/2/22
to Michael Hoenig, astrometry
 Yes,  this is because of a change in the new numpy 1.23.  I haven't had a chance to make all the required changes to the astrometry code yet.


--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/994fee05-b471-4d52-8658-8446ce4c1aa5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages