Skip to content

Numpy deprecation warnings #129

Closed
Closed
@toaarnio

Description

@toaarnio

The unsized basic datatypes np.float and np.int have been deprecated by Numpy. This is causing warnings at import spectral. Example:

[...] lib/python3.8/site-packages/spectral/config.py:160: DeprecationWarning: `np.int` is a deprecated alias
for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior
and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the
precision. If you wish to review your current use, check the release note link for additional information.

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