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

Undeprecate dict argument for coords in DataArray (#5527) #5528

Merged
merged 4 commits into from
Jul 4, 2021

Conversation

sjvrijn
Copy link
Contributor

@sjvrijn sjvrijn commented Jun 24, 2021

Discussed this in #3820, would have been possible a year ago... Better late than never 😅

@max-sixty max-sixty added the plan to merge Final call for comments label Jun 24, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Jun 28, 2021

Unit Test Results

         6 files  ±0           6 suites  ±0   55m 6s ⏱️ ±0s
16 172 tests ±0  14 457 ✔️ ±0  1 715 💤 ±0  0 ❌ ±0 
90 228 runs  ±0  82 106 ✔️ ±0  8 122 💤 ±0  0 ❌ ±0 

Results for commit 8090513. ± Comparison against base commit 8090513.

♻️ This comment has been updated with latest results.

@@ -332,6 +332,10 @@ def test_constructor(self):
expected = Dataset({None: (["x", "y"], data, {}, {"bar": 2})})[None]
assert_identical(expected, actual)

actual = DataArray([1, 2, 3], coords={"x": [0, 1, 2]})
expected = DataArray([1, 2, 3], coords=[("x", [0, 1, 2])])
assert_identical(expected, actual)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add a test for 2D dataarrays?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I'll add one asap

@max-sixty max-sixty merged commit 8090513 into pydata:main Jul 4, 2021
@max-sixty
Copy link
Collaborator

Thanks @sjvrijn !

@TomNicholas TomNicholas mentioned this pull request Jul 8, 2021
8 tasks
@sjvrijn sjvrijn deleted the undeprecate_coord_as_dict branch February 17, 2023 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undeprecate passing dictionary as coords for DataArray
3 participants