openPMD / openPMD/openPMD-api

Print Information About Queued IOTask

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

Description

@AlexanderSinn had the great idea to allow the user to print simple information about the `IOTask` queue that we store in
https://github.com/openPMD/openPMD-api/blob/0.14.4/include/openPMD/IO/AbstractIOHandler.hpp#L136

This would be super helpful to know what will be `flush`ed next.

We saw this, because some implementations can accidentally add new operations to the queue.
Our example was In Python: https://github.com/openPMD/openPMD-viewer/pull/340 .
We found that `data = np.full_like(record_component, np.nan)` probably does something like `record_component[()]` or and another call that queues an IOTask.

In order to debug such situations easier, we could just add a print method to list the tasks and their name (name of the enum).

What do you think @franzpoeschel? :)

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.