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)#

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.

Methods

Attributes

dtype

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

shape

name

data

task_insert_ID

task_idx

element_idx

element_ID

iteration_idx

iteration_ID

action_idx

run_idx

run_ID

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#
name: str#
run_ID: ndarray#
run_idx: ndarray#
shape: ndarray | None = None#
task_idx: ndarray#
task_insert_ID: ndarray#