AEI-ACR / pygsl_lite

A minimal wrapper for GSL based on the pygsl library
GNU General Public License v2.0
0 stars 1 forks source link

Incompatible with numpy2 #4

Closed duncanmmacleod closed 1 month ago

duncanmmacleod commented 2 months ago

The type mapping in __init__.py is incompatible with numpy2:

>>> import pygsl_lite
Traceback (most recent call last):
  File "/home/duncan/git/github.com/AEI-ACR/pygsl_lite/pygsl_lite/__init__.py", line 105, in <module>
    Float = _numobj.Float
            ^^^^^^^^^^^^^
AttributeError: module 'pygsl_lite._numobj' has no attribute 'Float'. Did you mean: 'load'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/duncan/git/github.com/AEI-ACR/pygsl_lite/pygsl_lite/__init__.py", line 108, in <module>
    Float = _numobj.float_
            ^^^^^^^^^^^^^^
AttributeError: module 'pygsl_lite._numobj' has no attribute 'float_'. Did you mean: 'float16'?

In numpy 2 the {int,float,complex}_ objects were removed.