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

Coerce coords into np.array in numpy_to_data_array #1695

Merged
merged 1 commit into from
Jan 16, 2022
Merged

Coerce coords into np.array in numpy_to_data_array #1695

merged 1 commit into from
Jan 16, 2022

Conversation

eidanch
Copy link
Contributor

@eidanch eidanch commented May 13, 2021

Description

Coerces the coords parameter of the numpy_to_data_array function into a numpy array using np.asarray.
This patch prevents the function from failing on tuple/list parameters.
Added a new unit test to cover the failing test.

Fixes #1451

Checklist

  • Follows official PR format
  • Includes new or updated tests to cover the new feature
  • Code style correct (follows pylint and black guidelines)
  • Is the new feature listed in the changelog?

Copy link
Member

@OriolAbril OriolAbril left a comment

Choose a reason for hiding this comment

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

Thanks for the PR

@eidanch
Copy link
Contributor Author

eidanch commented May 15, 2021

Thanks for approving. Happy to contribute!

@ahartikainen ahartikainen merged commit b54e022 into arviz-devs:main Jan 16, 2022
@eidanch eidanch deleted the fix-1451 branch January 16, 2022 16:12
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

Successfully merging this pull request may close these issues.

Non np.array coords cause hard to diagnose shape error
3 participants