openPMD/openPMD-api

`Dataset`: ArrayInterface Overload

オープン

#1,831 opened on 2026/01/13

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (57 件のフォーク)auto 404
feature requestfrontend: Python3good first issue

Repository metrics

Stars
 (160 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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)

コントリビューターガイド