Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nabobalis opened this issue Jun 18, 2024 · 0 comments
Open

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

nabobalis opened this issue Jun 18, 2024 · 0 comments
Milestone

Comments

@nabobalis
Copy link
Contributor

nabobalis commented Jun 18, 2024

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.

@nabobalis nabobalis added this to the 2.3.0 milestone Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant