Skip to content

Numpy shape is not mantained during import/export #3717

Open
@germa89

Description

@germa89

This fails because the shape is different:

>>> parameter = np.array([1,2,3])
>>> mapdl.parameters['temp_arr'] = parameter
>>> assert np.allclose(parameter, mapdl.parameters['temp_arr'])
E       assert False
E        +  where False = <function allclose at 0x106c13870>(array([1, 2]), array([[1.],\n       [2.]]))
E        +    where <function allclose at 0x106c13870> = np.allclose

I am surprised this is coming out... I think it was not possible... I should check previous PRs or retry again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyMAPDL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions