Skip to content

compare() background wrong for integer arrays when arrays are equal #246

@gdementen

Description

@gdementen

It is all red even though it should be white like for floats when there is no difference. The problem is the same when the comparison is done via two sessions.

from larray import Session, compare, ndtest

a = ndtest(3, dtype=float)
b = ndtest(3, dtype=int)

compare(a, a)          # white background like it should
compare(a, a + 1)      # blue background like it should
compare(b, b)          # red background even if diff is 0
compare(b, b + 1)      # blue background like it should
ses = Session(a=a, b=b)
compare(ses, ses)      # red background for b even if diff is 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions