Skip to content

nan support #30

Open
Open
@maartenbreddels

Description

@maartenbreddels

if not np.array_equal(old_value, new_value):
will think arrays are not equal always when they contain a nan, the proper code might be sth like:

            try:
                return np.allclose(a, b, 0, 0, equal_nan=True)
            except (TypeError, ValueError):
                return False

There are more places around, like in ipywidgets

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