Skip to content

Dataset: ArrayInterface Overload #1831

@ax3l

Description

@ax3l

We could simplify non-MPI Python code if we add another constructor to Dataset:

import openpmd_api as io

data = np.arange(size*size, dtype=np.double).reshape(3, 3)

# now
dataset = io.Dataset(data.dtype, data.shape)

# future
dataset = io.Dataset(data)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions