Skip to content

Test helper errors on sunraster with dev version of ndcube #730

Open

Description

@nabobalis

Describe the bug

test_input = {'exposure time': <Quantity [2., 2.] s>}, expected_output = {'exposure time': <Quantity [2., 2.] s>}

    def assert_metas_equal(test_input, expected_output):
        if not (test_input is None and expected_output is None):
            assert test_input.keys() == expected_output.keys()
            for key in list(test_input.keys()):
>               assert test_input[key] == expected_output[key]
E               ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Need to account for a key being an array.

Activity

  1. added this to the 2.3.0 milestone on Jun 18, 2024
  2. removed this from the 2.3.0 milestone on Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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