Skip to content

Fix newly added enum.py statement to eliminate FutureWarning of deprecation #238

Open
@martinholmer

Description

@martinholmer

@nikhilwoodruff, a few days ago in commit 7598d96 you added this statement:

if isinstance(array[0], Enum):
array = np.array([item.name for item in array])

This statement generates a dozen FutureWarnings of a deprecation as described here:

Screenshot 2024-08-07 at 3 22 27 PM

It would be good to fix this before it becomes an error.

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