GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — DOC: Migration guide should mention complex number API changes · Issue #25294 · numpy/numpy Closed Labels DescriptionDescribe the issue:I'm helping the h5py project migrate to Cython 3 and while doing so also tested with numpy 2.0 ( Basically h5py uses a macro from the HDF5 C++ library to get the offset into a struct for the "real" and "imag" members, but now complex types in numpy's C API are not structs (#24085). So I'm wondering what the best long term solution is to work around this. The h5py code doing this looks like this: Reproduce the code example:Not a python problem so no code example. See above for compilation information. Sorry for filing this as a bug but the "support" page on the docs lead to gitter, reddit, and IRC which all seemed inactive. This seems like a possibly specific case to h5py so I didn't really want to put it on stackoverflow either. And I wasn't really sure what else to categorize this as. Error message:/tmp/pip-req-build-3skh7xs0/h5py/h5t.c: In function ‘__pyx_f_4h5py_3h5t__c_complex’: /tmp/pip-req-build-3skh7xs0/h5py/api_compat.h:38:31: error: request for member ‘real’ in something not a structure or union 38 | #define h5py_offset_n64_real (HOFFSET(npy_complex64, real)) | ^~~~~~~ /tmp/pip-req-build-3skh7xs0/h5py/h5t.c:26702:21: note: in expansion of macro ‘h5py_offset_n64_real’ 26702 | __pyx_v_off_r = h5py_offset_n64_real; | ^~~~~~~~~~~~~~~~~~~~ Python and NumPy Versions:Python 3.11 Runtime Environment:No response Context for the issue:Currently affecting h5py compatibility with numpy 2.0. Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |