Create ``Data`` object wrapping the PyDPF-Core ``Field`` object
Closed this issue · 1 comments
GuillemBarroso commented
Description of the feature
So far we have the DataObject
class that wraps the FieldsContainer
.
We could also implement a Data
class containing the information of the Fields
. The Data
object would be returned when iterating on the DataObject
.
Steps for implementing the feature
Create a Data
class that it's initialized with the content of each Field
in the FieldsContainer
.
The Data
object will be requested by iterating on the DataObject as:
data_object_disp = simulation.displacement()
data_disp_0 = data_object_disp[0]
The print(data_disp_0)
will return something like the current Field
description:
Useful links and references
N/A
PProfizi commented
Closing as not planned for now. Not necessarily the design to be kept.