openPMD / openPMD/openPMD-api

RecordComponent: full-ellipsis data[...]

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

Description

The syntax `data[...]` for a numpy array works as an alias for `data[()]`.
I thought I read in the python documentation that at least one axis needs to be specified with python ellipsis syntax, i.e. `data[42, ...]` which we support as well as `data[:, ...]`, but might have misread that.

Long story short: we should add support for `data[...]` in `Record_Component` because it works in `numpy`.

Work-around: use `data[()]` for now.

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.