AngelFP/VisualPIC

Reading just certain timesteps from openpmd data is slow

Closed this issue · 1 comments

When reading openpmd data, DataContainer.load_data() will extract information of all timesteps, thus having to access all the files present in the data folder.
This process can be rather slow sometimes in certain systems.
Especially when the file is accessed for the first time.
The situation becomes a bit annoying when one needs to read one or certain timesteps only.
I have tried to fix this in PR #44 ,
by allowing DataContainer.load_data() to receive a list with the iterations to read.
Surely it is not the best way to do it, but I thought that it would be useful to propose something.

This issue was partially addressed with PR #44.
So let's close it.