Test helper errors on sunraster with dev version of ndcube
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa
Research direction
Start by locating the assert_metas_equal test helper shown in the traceback and inspect how it compares metadata values. Update the comparison so array-valued keys do not produce an ambiguous truth-value error, then run the relevant sunraster tests to confirm the helper handles both scalar and array metadata.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 49
- Forks
- 56
- Avg merge
- 5h 54m
- Merged PRs (30d)
- 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sunpy/ndcube
-
Bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Feature Request
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Feature Request
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100