dstndstn / tractor

The Tractor: measuring astronomical sources via probabilistic inference
Other
86 stars 24 forks source link

Build error: undeclared identifier 'NPY_ARRAY_UPDATEIFCOPY' #100

Closed tgoldina closed 1 year ago

tgoldina commented 1 year ago

When using the recent version of numpy (e.g. 1.23.5), pip install git+https://github.com/dstndstn/tractor.git@main fails with an error:

use of undeclared identifier 'NPY_ARRAY_UPDATEIFCOPY'

Replacing all occurrences of NPY_ARRAY_UPDATEIFCOPY with NPY_ARRAY_WRITEBACKIFCOPY cures the issue.

dstndstn commented 1 year ago

Should be fixed in 676f8fc75b8dd385559f29968821fa7675acb251.