Appending data to a Field using an array slice does not hold onto the data for GrpcCLayer and InProcess. This results in the Field reporting unassigned values.
Using sliced_data.copy() does not solve the issue despite it reporting sliced_data.flags["OWNDATA"]==True and sliced_data.base!=None.
Basically the field does not hold the data when added this way.
The question is whether there is something we can actually do about it, as it seems there is no way to know where the data comes from.
Before submitting the issue
Description of the bug
Appending data to a Field using an array slice does not hold onto the data for GrpcCLayer and InProcess. This results in the Field reporting unassigned values. Using
sliced_data.copy()
does not solve the issue despite it reportingsliced_data.flags["OWNDATA"]==True
andsliced_data.base!=None
. Basically the field does not hold the data when added this way. The question is whether there is something we can actually do about it, as it seems there is no way to know where the data comes from.Steps To Reproduce
prints:
Which Operating System causes the issue?
Windows
Which DPF/Ansys version are you using?
DPF Server 2024.2.pre0
Which Python version causes the issue?
3.11
Installed packages
NA