Skip to content

Pylearn-parsimony is not compatible with numpy version >=1.20  #38

@jchiquet

Description

@jchiquet

While trying to use this module with a recent version of Python and numpy, scipy, and understand the error underlying desanou/multiscale_glasso#1, I got the following error:

Module 'numpy' has no attribute 'float'.np.floatwas a deprecated alias for the builtinfloat. To avoid this error in existing code, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.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

It seems that parsimony use at least once np.float :

array = np.asarray(array, dtype=np.float)

Do you plan to publish a release correcting this?

Thanks

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