Open lucafedeli88 opened 4 years ago
Thank you for documenting this @lucafedeli88 !
cc @franzpoeschel As discussed elsewhere in the past, we want to address this generally by introducing an Iteration::close()
method to release handles as early as possible. Most workflows will know a definite point in time in which a write will not contribute to an iteration anymore. Do you want to take the lead on that one since it is a cut-topic with staging efforts in #570 or shall I draft an implementation for the current methods?
Independent of that, I will submit a PR that reading of incomplete series does work gracefully by gracefully skipping of such files as I did in https://github.com/openPMD/openPMD-viewer/pull/262
I already have this functionality on my streaming branch, will separate this into a PR next week @ax3l
Link: #746 :)
Describe the bug I am using WarpX ( https://github.com/ECP-WarpX/WarpX , b4067afbd5f487683d6c0f1e5c8ac835d3373fb6) with openPMD output format (ADIOS2 backend). When I try to read a
Series
from a simulation which is still running or aSeries
from an output folder generated by a crashed simulation, reading fails with this error message:Data can be read only if the last timestep is deleted.
To Reproduce Run a simulation with
WarpX
using openPMD output format and make it stop prematurely (e.g. by killing it). Then read some data with the following instructions:Software Environment