openPMD / openPMD/openPMD-api

`Dataset`: ArrayInterface Overload

Open
#1,831 4 comments 0 reactions 0 assignees View on GitHub
feature request frontend: Python3 good first issue
Dominant language
C++
Stars
161
Forks
59
Avg merge
2d 22h
Merged PRs (30d)
7

Description

We could simplify non-MPI Python code if we add another constructor to `Dataset`:
```python
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)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.