Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print Information About Queued IOTask #1245

Open
ax3l opened this issue Apr 13, 2022 · 0 comments
Open

Print Information About Queued IOTask #1245

ax3l opened this issue Apr 13, 2022 · 0 comments
Assignees

Comments

@ax3l
Copy link
Member

ax3l commented Apr 13, 2022

@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 flushed next.

We saw this, because some implementations can accidentally add new operations to the queue.
Our example was In Python: openPMD/openPMD-viewer#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? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants