Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Passing multidimensional array to Python results in a flat list #1141

Copy link
Copy link
@lostmsu

Description

@lostmsu
Issue body actions

Environment

  • Pythonnet version: 2.4.0
  • Python version: any
  • Operating System: any

Details

var array = new int[5,5];
dynamic numpyArray = np.array(array);
Console.WriteLine(numpyArray.shape);

Expected:

(5, 5)

Actual:

25

Workaround

Write a custom IPyObjectEncoder for multidimensional arrays.

christabella

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.