Skip to content

np.float error #20

@petr-lanl

Description

@petr-lanl

Hello,

I have installed lume-genesis from conda-forge today and I am getting the following error:
"
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. Did you mean: 'cfloat'?
"
I have python 3.12.2 and numpy 1.26.4

Could not find np.float in lume-genesis files. Can you help?

My temporary solution is:
np.float = float

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