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

RaggedArray in three dimensions fails to identify even array #174

Open
justinrporter opened this issue Jul 11, 2019 · 0 comments
Open

RaggedArray in three dimensions fails to identify even array #174

justinrporter opened this issue Jul 11, 2019 · 0 comments
Labels

Comments

@justinrporter
Copy link
Collaborator

justinrporter commented Jul 11, 2019

ra.RaggedArray(
    [[[1, 0, 0],
      [1, 0, 0],
      [1, 0, 0]],
     [[1, 0, 0],
      [0, 1, 0],
      [0, 1, 0]],
     [[1, 0, 0],
      [0, 1, 0],
      [0, 1, 0]]])

produces

RaggedArray([
      [[1, 0, 0],
       [1, 0, 0],
       [1, 0, 0]], dtype=object,
      [[1, 0, 0],
       [0, 1, 0],
       [0, 1, 0]], dtype=object,
      [[1, 0, 0],
       [0, 1, 0],
       [0, 1, 0]], dtype=object])

where I expected a return type of

array([[[1, 0, 0],
        [1, 0, 0],
        [1, 0, 0]],

       [[1, 0, 0],
        [0, 1, 0],
        [0, 1, 0]],

       [[1, 0, 0],
        [0, 1, 0],
        [0, 1, 0]]])

@mizimmer90 we should talk about this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant