pymapdl icon indicating copy to clipboard operation
pymapdl copied to clipboard

Numpy shape is not mantained during import/export

Open germa89 opened this issue 9 months ago • 0 comments

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.

germa89 avatar Jan 29 '25 17:01 germa89