Skip to content

pypi version incompatible with new numpy #210

@RadostW

Description

@RadostW

Problem:

Loading .fcs files gives the following error:

  File "./venv/lib/python3.10/site-packages/pycorrfit/readfiles/read_FCS_Confocor3.py", line 147, in openFCS_Multiple
    trace.append((np.float(row[3])*1000,
  File "./venv/lib/python3.10/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(__former_attrs__[attr], name=None)
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Source of the problem:

Current installation via pip pulls the following packages:

asteval==1.0.6
dill==0.4.0
lmfit==1.3.3
numpy==2.2.6
pycorrfit==1.1.7
PyYAML==6.0.2
scipy==1.15.3
uncertainties==3.2.3

This numpy is too new for 1.1.7 release code because of numpy.float removal (this is now numpy.float64).


Solution:

Code on github is good so just pushing a new release should fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions