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

Numpy shape is not mantained during import/export #3717

Open
germa89 opened this issue Jan 29, 2025 · 0 comments
Open

Numpy shape is not mantained during import/export #3717

germa89 opened this issue Jan 29, 2025 · 0 comments

Comments

@germa89
Copy link
Collaborator

germa89 commented Jan 29, 2025

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.

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

No branches or pull requests

1 participant