Skip to content

Editor sometimes display "received too many columns" warnings #333

Open

Description

@gdementen

Especially frequent during compare(). Even though the issue is harmless, it confuses users.

>>> compare(arr1, arr2)
WARNING: received too many columns (4 > 2)!
WARNING: received too many columns (4 > 2)!

There are two distinct issues here:

  • that warning should go to the logger (which is/should not be visible to end users) instead of using print(). Priority very high.
  • there is an underlying issue in at least compare() (and possibly elsewhere) which is causing this unexpected column number.

Activity

  1. added this to the 0.36 milestone on Jun 25, 2026
  2. modified the milestones: 0.36, 0.35.3 on Jun 25, 2026
  3. gdementen commented on Jun 25, 2026

    @gdementen
    CollaboratorAuthor

    For compare, it only triggers a warning for arrays with 3 dimensions or more.

    >>> arr1 = ndtest((2, 3, 4))
    >>> arr2 = arr1 + 1
    >>> compare(arr1, arr2)

    triggers a warning...

    but

    >>> arr1 = ndtest((2, 3))  # or ndtest(2)
    >>> arr2 = arr1 + 1
    >>> compare(arr1, arr2)

    does not

  4. self-assigned this
    on Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions