Skip to content

Support numpy views in all Field types #2632

@moe-ad

Description

@moe-ad

Before submitting the issue

  • I have checked for Compatibility issues
  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

Since a Field is not the only type which accepts numpy arrays as input data, similar bugs might exist in other types. We simply must hunt those down and implement a similar fix in the data setter for those types.

Steps To Reproduce

See #2546 and #2630 for more context.

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

DPF Server 2025.1.pre0

Which Python version causes the issue?

3.12

Installed packages

N/A

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions