AngelFP / VisualPIC

Data Visualization for Particle-in-Cell Codes.
GNU General Public License v3.0
47 stars 13 forks source link

Reading just certain timesteps from openpmd data is slow #45

Closed delaossa closed 4 months ago

delaossa commented 1 year ago

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 https://github.com/AngelFP/VisualPIC/pull/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.

delaossa commented 4 months ago

This issue was partially addressed with PR https://github.com/AngelFP/VisualPIC/pull/44. So let's close it.