hpcflow.sdk.core.workflow.ArrayOutput#

class hpcflow.sdk.core.workflow.ArrayOutput(name, data, task_insert_ID, task_idx, element_idx, element_ID, iteration_idx, iteration_ID, action_idx, run_idx, run_ID, shape=None, member_idx=None)#

Bases: object

Saved output array data and metadata in requested run-ID order.

For a scalar run ID, data is that run’s array; metadata arrays still have one entry. For multiple IDs, data is stacked when no shape metadata is present and all shapes match, otherwise it is a list. shape is omitted when none of the source archives has shape metadata.

Member outputs have one row per saved member, even for a scalar run ID. member_idx contains the original outer member indices, or -1 for whole-value entries in mixed archives. It is None for ordinary non-member archives.

Methods

Attributes

Parameters:
action_idx: ndarray#
data: ndarray | list[ndarray]#
property dtype: dtype#

Data dtype, or NumPy’s common dtype for list-backed arrays.

element_ID: ndarray#
element_idx: ndarray#
iteration_ID: ndarray#
iteration_idx: ndarray#
member_idx: ndarray | None = None#
name: str#
run_ID: ndarray#
run_idx: ndarray#
shape: ndarray | None = None#
task_idx: ndarray#
task_insert_ID: ndarray#