openPMD / openPMD/openPMD-api

Unclear error message

Open
#1,120 1 comment 1 reaction 2 assignees Claimed by @franzpoeschel View on GitHub
feature request internal
Dominant language
C++
Stars
161
Forks
59
Avg merge
2d 22h
Merged PRs (30d)
7

Description

I received this error message:
```
Chunk does not reside inside dataset (Dimension on index 2. DS: 50 - Chunk: 100)
```
It took me a while to decipher it. I assume this means that, in dimension 2 (counting from 0), the dataset has an extent of 50, while the chunk has an extent of 100.

I suggest to use the same terminology as in the API description ("extent", not "dimension"; maybe "direction" instead of "index), and to not abbreviate "dataset". It would also be convenient to give more information, as in
```
Chunk does not reside inside dataset.
Chunk extent: [100,100,100]
Dataset extent: [100,100,50]
Error in dimension 2.
```

It would also be convenient to output the name of the function that reports this error (here `store_chunk`).

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.